write the code that display the format just like
1
2 1
3 2 1
4 3 2 1
5 4 3 2 1
6 5 4 3 2 1
Answer Posted / bhushan
#include<iostream.h>
void main()
{
for(int i=1;i<=6;i++)
{
for(int j=i;j>=1;j--)
{
cout<<j<<"\t";
}
cout<<"\n";
}
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Explain explicit container.
How do I start a c++ project?
an integer constant must have atleast one a) character b) digit c) decimal point
What is the use of :: operator in c++?
Why is c++ not purely object oriented?
How would perform Pattern Matching in C++?
In c++, what is the difference between method overloading and method overriding?
How can you specify a class in C++?
What is difference between class and structure in c++?
Is java a c++?
What is the role of static keyword for a class member variable?
What are single and multiple inheritances in c++?
Explain the difference between static and dynamic binding of functions?
Is multimap sorted c++?
How do you master coding?