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

main()
{
int i,j;
for(i=1;i<=6;i++)
{
for(j=i;j>=1;j--)
printf("%d",j);
printf("\n");
}
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where must the declaration of a friend function appear?

1019


Can notepad ++ run c++?

1152


What is the best c++ compiler?

1227


What is constructor c++?

1158


what is C++ objects?

1246


Where can I run c++ program?

1112


Is it possible to provide special behavior for one instance of a template but not for other instances?

1178


Define token in c++.

1211


Why can’t you call invariants() as the first line of your constructor?

1085


What is the object serialization?

1207


What are advantages of using friend classes?

1130


what is COPY CONSTRUCTOR and what is it used for?

1128


What are the methods of exporting a function from a dll?

1300


What is const pointer and const reference?

1232


What are move semantics?

1227