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 the use of the ‘this’ keyword?
What are a fixed-width table and its advantages in javascript?
Write sample code for pagination using java script.
What makes a relation a function?
What is scope variable in javascript?
Event bubbling and Event Capturing in JavScript?
What does two exclamation marks mean in javascript?
Write a program to exaplain the deferred scripts using event handlers in javascript.
What is a fixed-width table and its advantages?
How to create an input box?
What is a named function in JavaScript? How to define a named function?
What is use of flutter?