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
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
What is a volatile variable in c++?
What is c++ and its uses?
What is null pointer and void pointer and what is their use?
What are the manipulators in c++?
You run a shell on unix system. How would you tell which shell are you running?
What is the difference between map and hashmap in c++?
What is the use of pointer in c++ with example?
Who made c++?
What is a storage class used in c++?
What is c++ virtual inheritance?
What data structure is fastest, on average, for retrieving data: a) Binary Tree b) Hash Table c) Stack
What is setiosflags c++?
Explain unexpected() function?
Write about the role of c++ in the tradeoff of safety vs. Usability?