Cancel fractions by *yuko*

character*99c
do1;read'(a)',c;i=scan(c,"/");c(i:i)="";read(c,*)i,j;k=0
2 k=k+i;if(k/j*j<k)goto2
print'(i0$)',k/j;if(k>i)print'(h/i0$)',k/i;1 print*;end

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

download

return to the top page