A Japanese counting system by allemo

main(i,j,k,l){char *s="\x7f\x04\x04\x04\x04\x04\x04\x04\x7f\x7f\x7f\x7f\x01\x7f\x03\x7f\x7f\x7f\x02\x02\x01\x7f\x03\x7f\x7f\x7f\x7f\x7f\x01\x7f\x7f\x7f\x7f\x00\x00\x00\x00\x00\x00\x00";for(;scanf("%d",&i)+1;)for(j=5;j--;)for(k=i;k>0;k-=5){for(l=8;l--;)putchar(s[j*8+l]<k?'*':!l&&k<6?'\n':' ');}}

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

download

return to the top page