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
What is a method in javascript?
What is the disadvantage of using innerhtml in javascript?
What are the basic groups of dataypes in JavaScript?
What are the distinct types of error name values?
To write messages to the screen without using "document.write()"?
What is null in js?
What is the difference between ‘var’ and ‘let’ keyword?
Which built-in method returns the string representation of the number’s value?
Explain the unshift() method ?
How can you create an Object in JavaScript?
How to get value from radiobuttonlist control?
What is a currying function?
What are screen objects?
What will be the output of the following statements?
How to add a new property in existing function javascript?