A Japanese counting system by nn

for(;n=readline();)for(i=-1;i++<4;print(o))for(o='',v=n;v>0;v-=5)for(j=0,o+=o&&' ';j<7;)o+='* '[([0,6662666,6462336,6462666,5555555][i]+'')[j++]>(v>5?5:v)|0]

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

download

return to the top page