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 |
How do you target a specific frame from a hyperlink?
What is new keyword in javascript?
How to have the status line update when the mouse goes over a link (the support of the status line is sporadic)?
How to you change the title of the page by javascript?
What is difference between arrow function and normal function?
Where is javascript used most?
Can array in javascript be extended?
To write messages to the screen without using "document.write()"?
How to use external JavaScript file?
What is a closure in javascript?
What is the difference between programing language and scripting language.?
how to post the form without submit button with help of javascript