fraction(N1, D1) + fraction(N2, D2) = {?}
N1 / D1 + N2 / D2
The fractions must have the same denominator before you can add them.
Let's rewrite fraction(N1, D1)
with a denominator of 100
.
\dfrac{N1 \times 10}{D1 \times 10} = fraction(N1 * 10, D1 * 10)
Now we can add.
fraction(N1 * 10, D1 * 10) + fraction(N2, D2) = {?}
Let's rewrite fraction(N2, D2)
with a denominator of 100
.
\dfrac{N2 \times 10}{D2 \times 10} = fraction(N2 * 10, D2 * 10)
Now we can add.
fraction(N1, D1) + fraction(N2 * 10, D2 * 10) = {?}
= fraction(SOL_NUM, 100)