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

int n=5;
for(int i=1;i<=n;i++)
{
for(int j=1;j<=n;j++)
{
cout<<i;
}
cout<<j;
}

Is This Answer Correct ?    8 Yes 31 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is array explain it?

876


How do I retrieve a cookie with a given name using a regular expression?

914


List few advantages of using javascript?

861


Can we learn javascript without knowing java?

1028


What is the difference between local storage & session storage?

914


What does two exclamation marks mean in javascript?

974


How to calculate fibonacci numbers in javascript?

1031


What is difference == and === in javascript?

979


Which built-in method returns the index within the calling string object of the first occurrence of the specified value?

1056


Is javascript or python easier?

918


What is hoisting in javascript?

946


What does "1"+2+3 evaluate to?

946


Where do you put javascript in html?

1010


What is the concept of “functions as objects” and how does this affect variable scope?

922


Is javascript frontend or backend?

886