Counting Adventure 10 by nn

n=System.in.read()%7
(2<<n).times{v->println~(n..0).sum{'.#'[v>>it&1]}}

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

download

return to the top page