i,n;f(j){for(;j--;)printf(" ");for(;++j-i;)putchar(j+49);for(;--j>0;)putchar(48+j);puts("");}main(){scanf("%d",&n);for(;++i-n;)f(n-i);for(;i>0;i--)f(n-i);}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page