[ad_1]
a/b - c/d = (ad - bc) / bd
Then you need to reduce that to lowest terms (if you care about that).
[ad_2]
solved What would be the code to add and subtract fractions in c++ [closed]
[ad_1]
a/b - c/d = (ad - bc) / bd
Then you need to reduce that to lowest terms (if you care about that).
[ad_2]
solved What would be the code to add and subtract fractions in c++ [closed]