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
What is event in web programming?
What makes a relation a function?
List few advantages of using javascript?
What is primitive data type in javascript?
What is the most popular javascript library?
What is the difference between the keywords var and let?
What does clean white space mean?
Is python better than javascript?
What is built in function in javascript?
Can you explain how inheritance works in javascript?
How to show progress bar while loading using ajax call?
What is dom in javascript?
How to redirect a url using JavaScript?
What is an ECMAScript?
What is javascript hoisting?