print the following using loop.
54321
4321
321
21
1
Answer Posted / 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 |
Post New Answer View All Answers
How can you create an Object in JavaScript?
How to call a function inside a function in javascript?
How to write a function in javascript?
What is unshift method in JavaScript?
How can I learn coding fast?
How to convert json object to string?
What is use of settimeout function in javascript?
Write a Program using Servlet and JDBC for developing online application for displaying the details of Cars owned by the residents in XYZ society. Make necessary assumptions and create appropriate databases
How to show progress bar while loading using ajax call?
Is javascript a security risk?
What does polyfill mean?
Explain the difference between call() and apply()?
Why is object naming important to use in javascript?
How can javascript be used to improve the "look and feel" of a web site? By the same token, how can javascript be used to improve the user interface?
What are different types of popup boxes available in javascript?