A Japanese counting system by hakusui

System.in.eachLine{n->["1"*7,"   2"," 4 233"," 4 2","5"*7].any{for(x=n as int;x>0;x-=5)printf"%-7s%c",it.tr("1-5","*"*x+" "),x<6?10:32}}

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

download

return to the top page