Diamond Matrix by Jan Dvorak

for(x=i=+readline();--x>-i;print())for(y=i;--y>-i;putstr(n>0?n:y<0?"":" "))n=(x>0?-x:x)+(y>0?-y:y)+i

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

download

return to the top page