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

Answers were Sorted based on User's Feedback



print the following using loop. 54321 4321 321 21 1..

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

print the following using loop. 54321 4321 321 21 1..

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

More JavaScript Interview Questions

How do you add an element at the beginning of an array?

0 Answers  


Some XYZ company is arranging for online aptitude tests. Draw detailed E-R diagram for the same..

0 Answers   QuinStreet,


How to trigger a postback on an updatepanel from javascript?

0 Answers  


What is the difference between null & undefined?

0 Answers  


Is an interface is a class?

1 Answers  


List out the Mouse Events?

0 Answers  


Is JavaScript a true OOP language?

0 Answers  


how to run java script program

1 Answers  


if the two text boxes are there i want assign the vales like 2&3 and if i select button means i want find the sum.this is client side scripting in javascript

7 Answers   Infosys,


Which keyword is used to print the text in the screen?

0 Answers  


How do you know if a set of points is a function?

0 Answers  


Write sample code for pagination using java script.

3 Answers  


Categories