Search:

Type: Posts; User: kay19

Search: Search took 0.13 seconds.

  1. Replies
    3
    Views
    251

    Re: Rational - GCD issue

    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 =...
  2. Replies
    3
    Views
    251

    Rational - GCD issue

    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...
Results 1 to 2 of 2