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 drawback of classical methods in oops?

2924


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

3850


What is the purpose of polymorphism?

683


What is multilevel inheritance explain with example?

630


What is coupling in oops?

600






What is destructor example?

602


What does sksksk mean in text slang?

1542


What is the oops and benefits of oops programming?

558


What are the 5 oop principles?

605


What is the important feature of inheritance?

637


IS IT NECESSARY TO INITIALIZE VARIABLE? WHAT IF THE INSTANCE VARIABLE IS DECLARED final ? IS IT NECESSARY TO INITIALIZE THE final VARIABLE AT THE TIME OF THEIR DECLARATION?

1585


What are the features of oop?

641


What is class and object in oops?

615


Which language is not a true object oriented programming language?

646


How to call a non virtual function in the derived class by using base class pointer

5285