Thanks for the reply. Yes, I was missing the method gcd. Here is what i've done.
int divisor = gcd(numerator, denominator);
numerator = numerator/divisor;
denominator =...
Type: Posts; User: kay19
Thanks for the reply. Yes, I was missing the method gcd. Here is what i've done.
int divisor = gcd(numerator, denominator);
numerator = numerator/divisor;
denominator =...
Hello, I am having trouble trying to build the "gcd(Greatest common divisor". It's where if I input "1/2 - 3/4" output would be "-2/8", where I would want "-1/4". Here is my code. I finished all...