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

C#.net Interview Question A=10 B=5 C=A+B Print C The above will be given in a multiline textbox. You need to parse the above input, store values for A,B&c. And you have to display the value of C.

1 Answers   Syncfusion,


What makes a language oop?

0 Answers  


There are 2 classes defined as below public class A { class B b; } public class B { class A a; } compiler gives error. How to fix it?

3 Answers   Microsoft,


Program to check whether a word is the first word of the sentence.

1 Answers  


What does no cap mean?

0 Answers  






How to Increment the value of the empid E001 for each and every employee by using the programe?

1 Answers   Accenture,


What is pointer in oop?

0 Answers  


why freind function takes more parameter than normal member function in c++?

1 Answers   IBM,


create a c++ program that will accepts 9 inputs using 3 by 3 array.

1 Answers  


In which Scenario you will go for Interface or Abstract Class?

1 Answers   InfoAxon Technologies,


Can an interface inherit a class?

0 Answers  


what are the realtime excercises in C++?

0 Answers   IBM, Wipro,


Categories