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

int main()
{
int i;
int j;
for(i = 1; i <= 6; i++)
{
for(j = i; j >= 1; j--)
{

cout<<j<<" ";
}
}
return 0;
}

Is This Answer Correct ?    4 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are proxy objects in c++?

1129


What is an orthogonal base class in c++?

1092


Why do we use structure in c++?

999


How the programmer of a class should decide whether to declare member function or a friend function?

1064


Tell me difference between constant pointer and pointer to a constant.

1111


Are strings immutable in c++?

1113


What is #include iostream in c++?

1004


What is oops in c++?

996


the first character in the variable name must be an a) special symbol b) number c) alphabet

1040


What is do..while loops structure?

1084


What's the best free c++ profiler for windows?

1031


What is this weird colon-member (" : ") syntax in the constructor?

962


If I is an integer variable, which is faster ++i or i++?

1013


Explain dangling pointer.

1074


What are special characters c++?

972