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 an example of javascript?
What does triple dot mean?
How to validate email in javascript?
What is node value?
How does typeof operator work?
Write a program to reverse a string in pure javascript?
Is javascript enabled on my computer?
What is output of “20” + 20? In javascript?
What does "1"+2+3 evaluate to?
What is the use of dom?
how many feet does a centipeed have?
How do you create array in javascript?