Zigzag by mendo

a,b=gets.split;0.upto(n=a.hex-1){|x|s="  "*n;s[x]=b;s[x<1?x:n*2-x]=b;puts s*n+" "*x+b}

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

download

return top