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
What do you mean by inheritance in c++? Explain its types.
What are the various arithmetic operators in c++?
Comment on c++ standard exceptions?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
What is a dangling pointer in c++?
Which bit wise operator is suitable for putting on a particular bit in a number?
how to access grid view row?
What is difference between c++ and c ++ 14?
How is new() different from malloc()?
Explain what are the sizes and ranges of the basic c++ data types?
Is there any difference between int [] a and int a [] in c++?
why is c++ called oops? Explain
Is c++ platform dependent?
Write a program in C++ for Fibonacci series
What does h mean in maths?