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 strict mode in javascript?
What is the concept of “functions as objects” and how does this affect variable scope?
List few difference between primitive and non primitive javascript data types?
why array is called the collection of similar datatypes?
Difference between undefined and undeclared variables?
Who introduced javascript?
How to Object.entries( ) In JavaScript ?
Is javascript array dynamic?
Is javascript becoming obsolete?
What is the reason for wrapping the entire content of a javascript source file in a function book?
Can you pass a anonymous function as an argument to another function?
What does the instanceof operator do?