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 are the basics of local (auto) objects?
What is token c++?
What are c++ tokens?
What is increment operator in c++?
What is the last index number in an array of 100 characters a) 100 b) 99 c) 101
What is stream and its types in c++?
How would you implement a substr() function that extracts a sub string from a given string?
Explain unexpected() function?
What is implicit conversion/coercion in c++?
Explain the pure virtual functions?
How can we check whether the contents of two structure variables are same or not?
Which software is used for c++ programming?
Difference between pointer to constant vs. Pointer constant
Define a constructor - what it is and how it might be called (2 methods)?
What is the v-ptr?