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

Does dev c++ support c++ 11?

1021


What are the basic data types used in c++?

1042


Describe Trees using C++ with an example.

1158


Write about the use of the virtual destructor?

1009


What is static function? Explain with an example

1083


What is the last index number in an array of 100 characters a) 100 b) 99 c) 101

1154


Is c++ an integer?

1041


Can a built-in function be recursive?

1030


What do you mean by translation unit?

1098


How to access a variable of the structure?

1097


What are the advantages of using friend classes?

1152


What is a buffer c++?

1066


Can member data be public?

1037


Is turbo c++ free?

1082


Describe the syntax of single inheritance in C++?

1082