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



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

Answer / 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

More OOPS Interview Questions

what is overloading

3 Answers   MindCracker,


What are the advantanges of modularity

2 Answers  


Is this job good for future? can do this job post grduate student?

0 Answers  


What is persistence in oop?

0 Answers  


Explain virtual inheritance?

0 Answers  


what is difference between objects and function

1 Answers  


What are the main differences between procedure oriented languages and object oriented languages?

9 Answers   IBM, Infosys, Wipro,


What is Agile methodology?

20 Answers   ABC, Accenture, College School Exams Tests, Inmar, Microsoft, Sapient,


What is this interview room ? Is it a class or an object.

3 Answers   CybAge, NSN, Wipro,


Pls...could any one tell me that whether we can access the public data memeber of a class from another class with in the same program. Awaiting for your response Thanku

4 Answers  


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

0 Answers   Accenture,


pointers are support in C#? if yes then how to use it?

8 Answers   Softvision Solution,


Categories