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 to create an input box?

1204


In a pop-up browser window, how do you refer to the main browser window that opened it?

935


Is javascript harmful?

996


What is escape & unescape String functions in JavaScript?

1088


What are the different types of errors supported by javascript?

1197


What is a name function in javascript?

1073


What is built in function in javascript?

1106


Are javascript variables global?

1160


What are math constants and functions using javascript?

1094


What does the attribute defer/async do when added to the script tag?

1001


What is data types in javascript?

1101


How to check if a variable is an integer in javascript ?

1110


What companies use javascript?

910


What is whitespace in javascript?

1064


Is javascript necessary for web development?

1033