1
22
333
4444
Example
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,n;
clrscr();
printf("Enter the value of n:");
scanf("%d",&n);
for(i=0;i<=n;i++)
{
for(j=1;j<=i;j++)
{
printf("%d",i);
}
printf("\n");
}
getch();
}
/*=====================================================================
OUTPUT
Enter the value of n:4
1
22
333
4444
give it's explanation plzzz
ReplyDeletethere's an error I = 1 but not I = 0
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteThanks a lot
ReplyDeleteThanks
ReplyDeleteThank u so much sir
ReplyDeleteprogram question is not that first enter number and then prints 1 22 33 444 it is just printing all numbers kindly explain?
ReplyDelete