Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Write some differences between an external iterator and an internal iterator? Describe the advantage of an external iterator.

1087


What are namespaces in c++?

1104


What is DlgProc?

1034


What is an adaptor class or wrapper class in c++?

1250


What size is allocated to the union variable?

1074


What is private, public and protected inheritance?

1097


How many types of classes are there in c++?

1050


What is the use of this pointer in c++?

1010


How can I disable the "echo" feature?

1180


Difference between declaration and definition of a variable.

1180


What are the advantages of using a pointer? Define the operators that can be used with a pointer.

1042


What do you mean by global variables?

1083


What is iterator c++?

1001


What is the difference between the parameter to a template and the parameter to a function?

1128


Why do we use the using declaration?

1182