Arithmetic/Rational: Difference between revisions

m
No edit summary
Line 2,500:
divcand.numerator=onediv.denominator
sum=sum+onediv+divcand
if sum.real=1 then Print sum.denominator;" is perfect" : Goto ExitFor
}
}
if sum.real=1 then Print sum.denominator;" is perfect" : Goto ExitFor
ExitFor:
sum.numerator=1
}
Anonymous user