print the following using loop.
54321
4321
321
21
1
Answers were Sorted based on User's Feedback
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 | 31 No |
What is output of undefined * 2 in javascript?
Can array in javascript be extended?
Basic methods for opening a popup window using javascript?
What are the application of javascript?
What does window.print() do in Javascript?
How to check if a variable is an integer in javascript ?
What is the difference between .call() and .apply()?
Does spread operator deep copy?
What are types of javascript?
What is the difference between a web-garden and a web-farm?
How to import all exports of a file as an object.
What is node value?