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...

print the following using loop.
54321
4321
321
21
1

Answer Posted / rabin111

int i,j;
for(i=5;i>=1;i--)
{
for(j=i;j>=1;j--)
{
cout<<j;
}
cout<<"
"
}

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How compare function works javascript?

800


What is lambda in programming?

896


What is the importance of javascript? Expalin

880


What are all the types of Pop up boxes available in JavaScript?

1033


Does javascript support automatic type conversion, if yes give example.

994


What would be the result of 3+2+”7″?

1413


How to use "join()" to create a string from an array using javascript?

914


What is a boolean in javascript?

944


Write JavaScript code to use file system in binary format?

2482


How do I enable cookies and javascript?

862


What are the different ways to create an array in javascript?

920


what is a code in vb amount display in words

1846


Is javascript faster than asp script?

962


Are all javascript variables global?

890


What is the Infinity property used for in Javascript?

957