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 |
How do you add an element at the beginning of an array?
Some XYZ company is arranging for online aptitude tests. Draw detailed E-R diagram for the same..
How to trigger a postback on an updatepanel from javascript?
What is the difference between null & undefined?
Is an interface is a class?
List out the Mouse Events?
Is JavaScript a true OOP language?
how to run java script program
if the two text boxes are there i want assign the vales like 2&3 and if i select button means i want find the sum.this is client side scripting in javascript
Which keyword is used to print the text in the screen?
How do you know if a set of points is a function?
Write sample code for pagination using java script.