Question: Write a function divide for the rational type which puts the result in the simplest form.
Write a function divide for the rational type which puts the result in the simplest form.
Step by Step Solution
3.47 Rating (157 Votes )
There are 3 Steps involved in it
x is numerator and y is denominator int GCD int a in... View full answer
Get step-by-step solutions from verified subject matter experts
