Cancel fractions by henkma

f"%1"=""
f(x:y)|x<'&'='/':y|x<'0'='%':y|0<1=x:f y
m@main=do n<-getLine;putStrLn$f$show(read$f$n::Rational);m

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

download

return to the top page