Cancel fractions by murky-satyr

r=io.read
while''do
n=r'*n'r(1)d=r'*n'a,b=n,d
while b>0 do a,b=b,a%b end
print(n/a..(d>a and'/'..d/a or''))end

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

download

return to the top page