print the following using loop.
54321
4321
321
21
1

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is function a data type in javascript?

459


What are the javascript data types?

497


A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one litre of milk is $0.38, and the profit of each carton of milk is $0.27. Write a java program that prompts the user to enter the total amount of milk produced in the morning. Then display the number of milk cartons needed to hold milk, the cost of producing milk, and the profit for producing milk.

1603


How to define a anonymous function?

541


How to set the focus in an element using javascript?

490






What is foreach loop in javascript?

518


How are DOM utilized in JavaScript?

669


What is strict mode in javascript?

540


How to write a comment in javascript?

664


What is a name function in javascript & how to define it?

494


What is an example of javascript?

438


hi iM rahul.my questions is my project is a web based & developed using java,jsp. when i record it using qtp what script i will get like either browser("jdfjkf").page("nkf").... or javawindow("f d ").javaedit("Dasf").... plz clarify my doubt asap and i also need some vbscipt of java coding?

1722


How to validate email in javascript?

489


How dhtml is used in javascript?

439


How to create the namespace in javascript?

551