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

What are the various storage classes in C++?

1086


Which is best ide for c++?

965


What is an accessor in c++?

1020


Do you know what are static and dynamic type checking?

1012


What are the four partitions in which c++ compiler divides the ram?

1165


What are the stages in the development cycle?

984


What is a dangling pointer in c++?

1084


What do you mean by static variables?

1103


What is a .lib file in c++?

939


Can I create my own functions in c++?

1037


What is the default access level?

1022


Explain all the C++ concepts using examples.

1150


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

1037


What is class definition in c++ ?

1027


Are vectors passed by reference c++?

935