|
@ -24,4 +24,7 @@ def addFractions(num1, denom1, num2, denom2): |
|
|
def multiplyFractions(num1, denom1, num2, denom2): |
|
|
def multiplyFractions(num1, denom1, num2, denom2): |
|
|
result_num = num1 * num2 |
|
|
result_num = num1 * num2 |
|
|
result_denom = denom1 * denom2 |
|
|
result_denom = denom1 * denom2 |
|
|
return reduceFraction(result_num, result_denom) |
|
|
|
|
|
|
|
|
return reduceFraction(result_num, result_denom) |
|
|
|
|
|
|
|
|
|
|
|
def divideFractions(num1, denom1, num2, denom2): |
|
|
|
|
|
return multiplyFractions(num1, denom1, denom2, num2) |