program for following output using for loop?
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Answer Posted / shashi kumar c.a
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=1;i<=5;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",j);
}
}
getch();
}
| Is This Answer Correct ? | 13 Yes | 20 No |
Post New Answer View All Answers
What are the advantages of c language?
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 is a dynamic array in c?
How can I do graphics in c?
When is a null pointer used?
Is c language still used?
please explain every phase in the "SDLC" in the dotnet.
What is a built-in function in C?
What is variable initialization and why is it important?
How do you override a defined macro?
What does s c mean on snapchat?
What is the difference between array and pointer in c?
Explain the use of fflush() function?
How are strings stored in c?
What does the function toupper() do?