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
How to declare a pointer to an array of integers?
What is double in c++?
What doescout<<(0==0) print out a) 0 b) 1 c) Compiler error: Lvalue required
Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be
Why is c++ still best?
Why do we use vector in c++?
How can we read/write Structures from/to data files?
What are advantages of using friend classes?
What parameter does the constructor to an ofstream object take?
Define pointers?
Define a constructor?
What is static in c++?
What is the full form of dos?
Why is c++ still used?
Can you declare an array without a size in c++?