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 I remove the leading spaces from a string?
What is break in c?
Do array subscripts always start with zero?
WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER
How many keywords are there in c?
What is the importance of c in your views?
Describe static function with its usage?
List the difference between a While & Do While loops?
What is the difference between malloc calloc and realloc in c?
Are c and c++ the same?
I need previous papers of CSC.......plz help out by posting them.......
Why is c fast?
Explain what is the benefit of using #define to declare a constant?
What are high level languages like C and FORTRAN also known as?
Is struct oop?