Ruby by recursive

\xef\xbb\xbfwhile 1:n=input()-1;print n and"/"+"--"*n+"\\"or"\xe2\x97\x87";o="\\"+"  "*n;exec'o=" "+o[:-2];print o+"/";'*n

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

download

return top