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
Which type of variable among global and local, takes precedence over other if names are same?
What are anonymous functions in Javascript?
What does question mark mean in react?
Are all javascript variables global?
Is array an object javascript?
how to validate the date(dd/mm/yyyy)using regular expression in javascript? It should also satisfy the leap year feb 29 problem. Please help me.
Explain higher-order functions in javascript?
What does the delete operator do?
Why it is not advised to use innerhtml in javascript?
What is slug in javascript?
Explain with an example the use of event handlers in javascript.
What does trim stand for?
Create an array in javascript with a list of 4 colors, assign that array to the variable, ‘colors’.
What is the difference between undeclared & undefined?
What are the methods involved in javascript?