Reduce a fraction to lowest terms


/ Published in: C
Save to your folder(s)

To reduce a fraction to lowest terms, first we compute the GCD(greatest common divisor) of the numerator and denominator.
Then we divide both the numerator and denominator by the GCD.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.