print the following using loop.

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++)

Is This Answer Correct ?    8 Yes 26 No

Post New Answer

More JavaScript Interview Questions

how to run java script program

1 Answers  

what is the need of javascript in the internet

1 Answers  

What is the source code for include() & forwrd() method servlet program?

1 Answers  

What are the concepts of object oriented programming?Explain with an example.

1 Answers  

Program to return the address family of a socket

0 Answers  

What is missing in my code? function numberTally(numList) { var evenTotal = 0; var oddTotal = 0; for (var i = 0; i <= numList.length; i++) { if i % 2 { // i is odd oddTotal += numList[i]; // or oddTotal = oddTotal + numList[i]; } else { // i is even evenTotal + numList[i]; } } alert(oddTotal); return evenTotal; }

0 Answers  

HI friends .am Mohammed Riyash.JMC BCA Tricy. My doubt is. In some websites like when MouseOver() action performed.the menuitems will be drop down..and hides when blur()action happened.any body give the code for that..

1 Answers   Reliance, iGate,

what is the function of public class main ?

0 Answers  

write a programme to solve a formula for compound interest using html tags. I want to know how a formula containing degree (raise to the power) can be solved.

1 Answers  

Auto insurance project..How to explain project in interviews.Using Automation tool (selenium).

0 Answers  

What looping structures are there in JavaScript?

2 Answers   Satyam,

Can you tell me how to send email using javascript?

2 Answers