print the following using loop.
54321
4321
321
21
1
Answer Posted / rabin111
int i,j;
for(i=5;i>=1;i--)
{
for(j=i;j>=1;j--)
{
cout<<j;
}
cout<<"
"
}
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
How compare function works javascript?
What is lambda in programming?
What is the importance of javascript? Expalin
What are all the types of Pop up boxes available in JavaScript?
Does javascript support automatic type conversion, if yes give example.
What would be the result of 3+2+”7″?
How to use "join()" to create a string from an array using javascript?
What is a boolean in javascript?
Write JavaScript code to use file system in binary format?
How do I enable cookies and javascript?
What are the different ways to create an array in javascript?
what is a code in vb amount display in words
Is javascript faster than asp script?
Are all javascript variables global?
What is the Infinity property used for in Javascript?