Q:
1
22
333
4444
55555
#include
#include
void main()
{
int i,j,n,k;
clrscr();
printf("enter value of n:");
scanf("%d",&n);
for(i=1;i<=n;i++)
{
for(j=1;j<=n-i;j++)
{
printf(" ");
}
printf("\t\n");
for(k=1;k<=i;k++)
{
printf("%d",i);
}
printf("\t\n");
}
getch();
}
No comments:
Post a Comment