|
|
@ -26,8 +26,8 @@ def addFractions(num1, denom1, num2, denom2): |
|
|
|
return reduceFraction(result_num, denom1) |
|
|
|
|
|
|
|
def multiplyFractions(num1, denom1, num2, denom2): |
|
|
|
result_num = num1 * num2 |
|
|
|
result_denom = denom1 * denom2 |
|
|
|
result_num = multiply(num1, num2) |
|
|
|
result_denom = multiply(denom1, denom2) |
|
|
|
return reduceFraction(result_num, result_denom) |
|
|
|
|
|
|
|
def divideFractions(num1, denom1, num2, denom2): |
|
|
|