Reduce fractions FIXED by BioFALSE

for(<>){$_=($a,$b)=/(\d+).(\d+)/;while($_<$b){until($a%$_||$b%$_){$a/=$_;$b/=$_}$_++}print"$a/$b\n"}

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

download

return to the top page