print the following using loop.
54321
4321
321
21
1






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 26 No

Post New Answer




More JavaScript Interview Questions

What is the use of a form in html page? Is there any way to submit the page without using the form.

3 Answers   TCS, Kanbay,


how can we retrieve value from one database server and store them another database server using sql server code

0 Answers   HP,


How to change video files randomly after completing its execution in Javascript?

0 Answers   HCL,


why array is called the collection of similar datatypes?

1 Answers  


what is the source code for sendRedirect method()java Servlet program?

1 Answers  






do any browser need activeX object to run javascripts?

2 Answers  


can any one tell me the syllebus for java certification

2 Answers  


Describe what u had done today?

0 Answers   Genpact, Sams,


Program to return the address family of a socket

0 Answers  


How to port a GUI application onto Web

0 Answers   TCS,


what are the differences between as2 and as3?

0 Answers  


Is java is a fully object object oriented language?

2 Answers  






Categories