Diamond Matrix by orangetide

main(){char i=49,n=getchar(),d=1,*s="12345678987654321";for(;i>48;i+=d,d=i>=n?-1:d)printf("%*.*s%.*s\n",n-48,i-48,s,i-49,s+66-i);}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page