XYZ by nn

m=l="$System.in".toLong()
n=m>>1
s=m>1?' ':''
[n..1,0..n]*.any{i->S=' '*(j=n-i)
println S+'X'+(i?(T=' '*(2*i-1))+'X'+S:S)+s+(--l>n?S+'Y'+T+'Y'+S:'Y'.center(m))+s+(j?' '*l+'Z':'Z'*m)}

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

download

return to the top page