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 / kamal
int main()
{
cout<<"1\n2 1\n3 2 1\n4 3 2 1\n5 4 3 2 1\n6 5 4 3 2 1";
return 0;
}
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do you mean by friend class & friend function in c++?
What size is allocated to the union variable?
What do you understand by zombie objects in c++?
Does there exist any other function which can be used to convert an integer or a float to a string?
What are c++ variables?
How to demonstrate the use of a variable?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
What are static and dynamic type checking?
What is function overloading in C++?
How does a copy constructor differs from an overloaded assignment operator?
When should I use unitbuf flag?
Why iomanip is used in c++?
What is endl c++?
Is c++ double?
What do you mean by volatile and mutable keywords used in c++?