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
Is function a data type in javascript?
What are the javascript data types?
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.
How to define a anonymous function?
How to set the focus in an element using javascript?
What is foreach loop in javascript?
How are DOM utilized in JavaScript?
What is strict mode in javascript?
How to write a comment in javascript?
What is a name function in javascript & how to define it?
What is an example of javascript?
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?
How to validate email in javascript?
How dhtml is used in javascript?
How to create the namespace in javascript?