program for following output using for loop?
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Answer Posted / pra japati apurv d
#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",i);
}
printf("\n");
}
getch();
}
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is I ++ in c programming?
Write a program on swapping (100, 50)
When I tried to go into a security sites I am denied access and a message appeared saying 'applet not initialize'. How can I rectify this problem.
Is null always equal to 0(zero)?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
What does != Mean in c?
Explain the difference between ++u and u++?
What is sizeof in c?
Is c still relevant?
Explain a pre-processor and its advantages.
PROGRAM TO WRITE CONTENTS OF 1 FILE IN REVERSE TO ANOTHER FILE,PROGRAM TO COPY 1 FILE TO ANOTHER BY SPECIFYING FILE NAMES AS COMMAND LINE
What is masking?
show how link list can be used to repersent the following polynomial i) 5x+2
how to write optimum code to divide a 50 digit number with a 25 digit number??
What is the use of ?