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
Explain the concept of friend function in c++?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
How many characters are recognized by ANSI C++?
Can class objects be passed as function arguments?
what are the decision making statements in C++? Explain if statement with an example?
Is c++ map a hash table?
When do we run a shell in the unix system? How will you tell which shell you are running?
Explain how functions are classified in C++ ?
What is the difference between the parameter to a template and the parameter to a function?
What is the best c++ compiler for windows 10?
Can I learn c++ in a week?
How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?
Explain the difference between c++ and java.
Can we use struct in c++?
How are Structure passing and returning implemented by the compiler?