Christmas tree by nn

n="$System.in".toLong()-2
[*n..0,n].any{println' '*it+'*'*(n-~n-2*it)}

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

download

return to the top page