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

What is the use of the ‘this’ keyword?

0 Answers  


What are a fixed-width table and its advantages in javascript?

0 Answers  


Write sample code for pagination using java script.

3 Answers  


What makes a relation a function?

0 Answers  


What is scope variable in javascript?

0 Answers  


Event bubbling and Event Capturing in JavScript?

0 Answers  


What does two exclamation marks mean in javascript?

0 Answers  


Write a program to exaplain the deferred scripts using event handlers in javascript.

0 Answers  


What is a fixed-width table and its advantages?

0 Answers  


How to create an input box?

0 Answers  


What is a named function in JavaScript? How to define a named function?

0 Answers  


What is use of flutter?

0 Answers  


Categories