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 to create an input box?
In a pop-up browser window, how do you refer to the main browser window that opened it?
Is javascript harmful?
What is escape & unescape String functions in JavaScript?
What are the different types of errors supported by javascript?
What is a name function in javascript?
What is built in function in javascript?
Are javascript variables global?
What are math constants and functions using javascript?
What does the attribute defer/async do when added to the script tag?
What is data types in javascript?
How to check if a variable is an integer in javascript ?
What companies use javascript?
What is whitespace in javascript?
Is javascript necessary for web development?