Zigzag by yvl

a=gets.to_i
a.times{|i|s=" "*k=2*a-2
s[i]=s[-i]=$_[-1]
puts (s*a)[0..i-k]}

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

download

return to the top page