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

Snake Game: This is normal snake game which you can find in most of the mobiles. You can develop it in Java, C/C++, C# or what ever language you know.

3027


Is it possible to get the source code back from binary file?

1385


How do I write a c++ program?

1131


Is c++ the most powerful language?

1104


Why do we use the using declaration?

1186


Explain stack unwinding.

1085


What is the importance of mutable keyword?

1034


Explain what is oop?

1100


Can non-public members of another instance of the class be retrieved by the method of the same class?

1097


Why is main an int?

1006


What are the five basic elements of a c++ program?

1125


Who created c++?

1078


What is a terminating character in c++?

1407


What is polymorphism & list its types in c++?

1078


Which bit wise operator is suitable for putting on a particular bit in a number?

1225