0

How do create a code that tests equality of fractions and results in true or false

eg f1= 5/10 f2 = 3/6 f1==f2 true

1st Jul 2017, 6:14 PM
Pride Mawire
Pride Mawire - avatar
2 Antworten
0
reduce them down 5/10 reduces down to 1/2 3/6 reduces down to 1/2 then check if 1/2==1/2
1st Jul 2017, 6:37 PM
LordHill
LordHill - avatar
1st Jul 2017, 6:50 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar