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

What will happen if a pointer is deleted twice?

1130


What is the basic structure of a c++ program?

1075


Ask to write virtual base class code?

2694


Define namespace in c++?

997


what Is DCS ? what i will get benefit when i did?

2301


What is a wchar_t in c++?

1056


What would happen on forgetting [], while deallocating an array through new?

1024


What is std namespace in c++?

1114


Why we use #include conio h in c++?

989


Is c++ platform dependent?

1032


What is #include iomanip?

950


How are virtual functions implemented in c++?

1014


Should the member functions which are made public in the base class be hidden?

962


What are guid?

1177


Tell me an example where stacks are useful?

981