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
What is meant by int main ()?
What is ambagious result in C? explain with an example.
What is bubble sort technique in c?
What happens if a header file is included twice?
What is the difference between far and near ?
What is a file descriptor in c?
Give me the code of in-order recursive and non-recursive.
Explain Function Pointer?
C language questions for civil engineering
What is meant by inheritance?
What is difference between union and structure in c?
Tell me what is null pointer in c?
Why does not c have an exponentiation operator?
Why is it usually a bad idea to use gets()? Suggest a workaround.
Can you write the function prototype, definition and mention the other requirements.