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 |
How are javascript and ecma script related?
Is javascript array dynamic?
How to loop through array in javascript?
The below script is working Internet browser but not working in mozilla plz find that good way... function doSubmit(op){ var rowcount=document.getElementsByName ("parameterTypeId").length; var parameterGrade; var performance; var goal; if(op == "save"){ for (var i=0; i < rowcount; i++) { var param=eval("document.forms [0].parameterGrade"+i); if(param.value != "select"){ return true; } } alert("Please rate atleast one attribute"); return false; }//if ends here
How dhtml is used in javascript?
Is there an ide for javascript?
What is noscript tag?
What are the benefits of learning javascript?
Can you assign an anonymous function to a variable and pass it as an argument to another function?
Why javascript is called lightweight language?
How to you change the title of the page by javascript?
What are JavaScript Cookies?