#include<stdio.h>
void main()
{
int i,j,k,n;
for (i=1;i<=9;i++) /*把此处循环从i=1开始,改怎么改*/
{
for (j=1;j<=i;j++)
printf(" ");
for (k=1;k<10-i;k++)
printf("%d",k);
for (n=10-i;n>=1;n--)
printf("%d",n);
printf("\n");
}
}
void main()
{
int i,j,k,n;
for (i=1;i<=9;i++) /*把此处循环从i=1开始,改怎么改*/
{
for (j=1;j<=i;j++)
printf(" ");
for (k=1;k<10-i;k++)
printf("%d",k);
for (n=10-i;n>=1;n--)
printf("%d",n);
printf("\n");
}
}