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 / 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


Please Help Members By Posting Answers For Below Questions

Explain explicit container.

1085


How do I start a c++ project?

1081


an integer constant must have atleast one a) character b) digit c) decimal point

1031


What is the use of :: operator in c++?

1127


Why is c++ not purely object oriented?

1013


How would perform Pattern Matching in C++?

1236


In c++, what is the difference between method overloading and method overriding?

1147


How can you specify a class in C++?

1293


What is difference between class and structure in c++?

1210


Is java a c++?

1048


What is the role of static keyword for a class member variable?

1074


What are single and multiple inheritances in c++?

1101


Explain the difference between static and dynamic binding of functions?

1075


Is multimap sorted c++?

1008


How do you master coding?

1038