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 array explain it?
How do I retrieve a cookie with a given name using a regular expression?
List few advantages of using javascript?
Can we learn javascript without knowing java?
What is the difference between local storage & session storage?
What does two exclamation marks mean in javascript?
How to calculate fibonacci numbers in javascript?
What is difference == and === in javascript?
Which built-in method returns the index within the calling string object of the first occurrence of the specified value?
Is javascript or python easier?
What is hoisting in javascript?
What does "1"+2+3 evaluate to?
Where do you put javascript in html?
What is the concept of “functions as objects” and how does this affect variable scope?
Is javascript frontend or backend?