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 |
Why is javascript good for websites?
Is there any ide for javascript?
How do I run code in browser console?
How to prevent modification of an object in Javascript?
What is javascript used for on iphone?
What exactly does javascript do?
Can I learn javascript without knowing java?
What is array constructor in javascript?
What Does JavaScript Void(0) Mean?
Is javascript case sensitive?
Which built-in method returns the index within the calling string object of the first occurrence of the specified value?
What are javascript closures?