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 a weakset object in javascript?
What is === in javascript?
Can you assign an anonymous function to a variable and pass it as an argument to another function?
Which is better python or javascript?
If an array with name as "names" contain three elements, then how will you print the third element of this array?
What is javascript hoisting?
Why is object naming important to use in javascript?
How to toggle display an html element?
How do you add an element at the beginning of an array?
What is null in js?
What is MEAN in javascript
What is an Event Bubbling in Javascript?