Search:

Type: Posts; User: xerxes1986

Search: Search took 0.00 seconds.

  1. i dunno...i just wanna know how this works so...

    i dunno...i just wanna know how this works so when my teacher asks me im not all "well i got it off the internet"
  2. ouch. try me.

    ouch. try me.
  3. i understand HOW the function actually goes about...

    i understand HOW the function actually goes about working

    i don't understand WHY it works...WHY does calling itself over and over get you the gcd????????????\





    what about my code? does...
  4. ya but it didn't make a whole lot of sense...what...

    ya but it didn't make a whole lot of sense...what about my code?
  5. would this bit of code work???? int gcd (int...

    would this bit of code work????


    int gcd (int numer, int denom)
    {
    if (denom == 0)
    return numer;
    return gcd(denom,numer % denom);
    }
  6. yeah but i really don't understand HOW this...

    yeah but i really don't understand HOW this works....i don't want to use this code if i don't understand it
  7. please help me understand the euclids algorithm

    i don't understand why this works:


    int gcd(int a, int b)
    {
    if (b == 0)
    return a;

    return gcd(b, a % b);
    }
Results 1 to 7 of 7