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 |
Are there any training Institutions on iphone Automation testing?
What is a method in javascript?
What are the predefined functions in javascript?
How to get an element by class in javascript ?
How to create a cookie using javascript?
Can I open javascript on iphone?
How do I disable javascript in my browser?
How do I retrieve a cookie with a given name using a regular expression?
Where can I learn javascript for beginners?
how can we use java script message alert with asp.net with useing vb.net coding show full process with its coading
What is the relationship between JavaScript and ECMAScript?
What is the use of decodeuri() and encodeuri()?