In my assignment, I'm asked to be able to take a fraction in as input, and then output it in simplified form if the fraction can be reduced down. Here is the problem i'm facing in my head about this, how do I make sure that the program knows the difference between a fraction that can be simplified, such as : 45/ 210
and a simplified fraction such as 3/4.
I was planning on using a function to find the GDF of the two numbers using modulo and then dividing it by each one to simplify (Euclidean algorithm) , but how can I make it so that the function can distinguish between a simplified fraction and a non-simplified fraction?