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 are the different types of errors in javascript?
What are trailing whitespace?
Which symbol is used for comments in Javascript?
What is a good javascript editor?
How to add a combo box dynamically at run time in Java script?
how to post the form without submit button with help of javascript
How to hide javascript code from old browsers that dont run it?
How to write a hello world example of javascript?
What is servlet in javascript?
Can you tell me how to send email using javascript?
How to create multiline strings in javascript?
What are parameters in javascript?