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


Please Help Members By Posting Answers For Below Questions

Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.

652


Which sort does c++ use?

582


Where is atoi defined?

585


Which software is best for c++ programming?

582


What are manipulators used for?

613






When can I use a forward declaration?

626


Differences between private, protected and public and give examples.

580


Differentiate between an external iterator and an internal iterator?

572


What are features of c++?

640


which operator is used for performing an exponential operation a) > b) ^ c) none

610


How can you differentiate between inheritance and implementation in c++?

644


What is the history of c++?

561


What is the use of string in c++?

553


Differentiate between a template class and class template in c++?

636


What is the use of dot in c++?

626