Diamond Matrix by katze

for(c=readline(s=i=1);i<2*c;print(o),i++<c?s++:s--)for(m=o=j="";++j-c<s;)o+=j>c-s?j>c?--m:++m:" ";

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

download

return to the top page