program for following output using for loop?
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Answer Posted / aky
#include<iostream.h>
#include<conio.h>
void main()
{
for(int i=1;i<=10;i++)
{
for(int j=1;j<=i;j++)
{
cout<<j;
}
cout<<endl;
}
}
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
How can a process change an environment variable in its caller?
an expression contains relational operators, assignment operators, and arithmatic operstors. In the absence of parentheses, they will be evaluated in which of the following order a) assignment, relational, arithematic b) arithematic, relational, assignment c) relational, arithematic, assignment d) assignment, arithematic, relational
What are header files and what are its uses in C programming?
What are the disadvantages of a shell structure?
What is data types?
Explain what is a 'locale'?
How does normalization of huge pointer works?
What is the best way to comment out a section of code that contains comments?
What are the general description for loop statement and available loop types in c?
differentiate built-in functions and user – defined functions.
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
What is character set?
Explain what are its uses in c programming?
Can we use visual studio for c?
Describe wild pointers in c?