Triangle ASCII art by nn

System.in.eachLine{n=it as int
println((0..n).sum{"|${(n--?' ':'_')*it}\\\n"}+'*'*32)}

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

download

return to the top page