Coding-
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,N;
clrscr();
printf("enter the terms:");
scanf("%d",&N);
for(i=1;i<=N;i++);
{
for(j=1;j<=i;j++)
{
printf("%d",i);
}
printf("\n");
}
getch();
}
OUTPUT-
1
22
333
4444
55555
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j,N;
clrscr();
printf("enter the terms:");
scanf("%d",&N);
for(i=1;i<=N;i++);
{
for(j=1;j<=i;j++)
{
printf("%d",i);
}
printf("\n");
}
getch();
}
OUTPUT-
1
22
333
4444
55555
Comments
Post a Comment
Please Subscribe and Comments my blog site.