how to write a java program for an output
****0 ***01 **012 *0123 01234

Answer Posted / adeel

#include<iostream>

using namespace std;

int main()
{
int i,j;
for(i=0; i<=5; i++)
for(j=1; j<=i; j++)

cout<<j;

system("pause");
return 0;
}

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the important feature of inheritance?

863


What is coupling in oop?

776


What is protected in oop?

811


hi, this is raju,iam studying b.tech 2nd year,iam want know about group1 and group2 details, and we can studying without going to any instutions? please help me.

1742


How Do you Code Composition and Aggregation in C++ ?

24717


How do you answer polymorphism?

794


Why is abstraction needed?

757


What is interface in oop?

878


What is oops with example?

769


Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer

1899


What is difference between data abstraction and encapsulation?

839


Get me a number puzzle game-program

1929


Where You Can Use Interface in your Project

1620


Can bst contain duplicates?

943


can inline function declare in private part of class?

3978