#include "stdio.h"
#include "conio.h"
int main()
{
clrscr();
int i,n,j;
printf("input: ");
scanf("%d",&n);
for(i=1;i<n;i++)
{
for(j=1;j<=n;j++)
printf(" ");
for(j=1;j<=i;j++)
printf("%d",i);
printf("\n");
}
getch();
return 0;
}
No comments:
Post a Comment