标签:pre eof class 输出 div bsp span return ret
int main() { int i,j,k,n,i2; while(scanf("%d", &n)!=EOF){ for(i=1;i<=n;i++) { for(j=1;j<=n-i;j++) printf(" "); for(k=1;k<2*i;k++) printf("%d",i); printf("\n"); } for(i2=1;i2<=n-1;i2++){ for(j=1;j<=i2;j++) printf(" "); for(k=1;k<=2*(n-i2)-1;k++) printf("%d",n-i2); printf("\n"); } } return 0; }
标签:pre eof class 输出 div bsp span return ret
原文地址:https://www.cnblogs.com/Estwind/p/10100006.html