Hi everyone! Can anybody help me create a fraction simplifier that asks the user for the numerator and the denominator, as well as also showing the original fraction?
Sounds like this is mostly a math problem no?
You want something that takes (for example) “10/20” and simplifies that to “1/2”, right?
So this is mostly a matter of finding common factors between two numbers and removing the largest common factor (until the only common factor is 1). I believe there are existing algorithms that solve these problems.