write a c++ program that gives output
1
1 2
1 2 3
1 2 3 4
1 2 3 4 5
using looping statement
Answer Posted / ramesh.bugatha78
for(int i=1;i<=5;i++)
{
for(int j=1;j<=i;j++)
cout<<j;
cout<<"\n";
}
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
Which programming language is best?
How do you decide which integer type to use?
Explain explicit container.
Is c++ vector a linked list?
How to implement is-a and has-a class relationships?
Name the implicit member functions of a class.
What are the basic data types used in c++?
Why is null pointer used?
Explain function overloading
Is c++ a dying language?
What is a far pointer? where we use it?
What are the methods of exporting a function from a dll?
Why is standard template library used?
Explain friend class?
What is the best c++ book?