Ruby by Mic92

r,p=string.rep,print for l in io.stdin:lines() do if l=="1" then p"\xe2\x97\x87" else p("/"..r("-",l*2-2).."\\") for i=0,l-2 do p(" "..r(" ",i).."\\"..r(" ",(l-i)*2-4).."/") end end end

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

download

return to the top page