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 the real life example of polymorphism?

0 Answers  


//what is wrong with the programme?? #include<iostream.h> template <class first> class dd { first i; public: void set(); void print(); }; void dd< first>:: set() { cin>>i; } void dd< first>::print() { cout<<"\n"<<i; } void main() { dd <char>g; g.set(); g.print(); }

1 Answers  


different types of castings

3 Answers   Siemens,


what is ns string? what is ns array?

1 Answers  


difference between class and object

10 Answers   Chandan, IBM, Magic Soft,






What is multiple inheritance?

9 Answers   TCS,


what is the virtual function overhead, and what is it used for ? i hope i can get and appropriate answers, thanks a lot....

6 Answers  


What are constructors in oop?

0 Answers  


What is static in oop?

0 Answers  


What type of loop is a for loop?

0 Answers  


What are the four main oops concepts?

1 Answers  


what is the sylabus for priliminaries?

0 Answers  


Categories