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
Explain the scope of resolution operator.
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
Discussion on error handling of C++ .
Is atoi safe?
What is the difference between interpreters and compilers?
Define the operators that can be used with a pointer.
What is the type of 'this' pointer? When does it get created?
What is the difference between public and private data members?
What is string in c++ programming?
What is the basic structure of a c++ program?
Define 'std'.
Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;
How would you find out if a linked-list is a cycle or not?
What is buffer and example?
Why is polymorphism useful?