#includeint main(){int i,j,k,n;printf("请输入一个数字:");scanf("%d",&n);for(i=1,k=-1;i<=n;i++,k+=2){for(j=0;jprintf("%d",i);if(k>0){for(j=0;jprintf("%d",i);}printf("\n");}for(i=n-1,k=2*(n-2)-1;i>0;i--,k-=2){for(j=0;jprintf("%d",i);if(k>0){for(j=0;jprintf("%d",i);}printf("\n");}return 0;}