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

why array is called the collection of similar datatypes?

1 Answers  


What is Javascript namespacing? How and where is it used?

0 Answers  


Explain the steps for connecting the system to Internet.

0 Answers   Annamalai University,


What are global variables? How are these variable declared and what are the problems associated with using them?

0 Answers  


What are the methods of validating whether the form is secure?

1 Answers  






Write JavaScript code to use file system in binary format?

0 Answers  


How to test PAGE LOAD TIME, RELOAD THE PAGE, CAPTURE THE URL'S , TEST THE PIXALS please please above all these how to test as a tester

0 Answers  


What are JavaScript Data Types?

0 Answers  


<script type="text/javascript"> function dispValue(e) { v = function (s) { return e.name + ': ' + s } if (e.type == "") return v(e.checked ? "" : ""); else return v(e.value); }

0 Answers  


How can I define an array in JavaScript?

4 Answers   Accenture, Exevo, OM IT Solutions,


What is negative infinity?

2 Answers   Satyam, CoKinetic,


what will happen and why if i will acess the methods of superclass which is declared as private by a object of same subclass.

0 Answers  






Categories