Long Division FIXED by rotary-o

i,j=5,c;main(n){for(c=getchar();printf(i++?~i>n?&c:~i>n*3?i+n*2?"\n  _\x00\x000"-i/n*3:"\n9 | %2$c":j++<3-n?"\n%*c0\n%*c%3d\n%*c_":"\n%*c":" %*c",j,c,j-2,45,c%8*9,j,95)-j;)n=-c*5%12;}

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

To protect the system from spam, please input your favorite sport (hint: I believe its name must start with 'g', case insensitive)

download

return to the top page