Sunday, October 31, 2010

Greatest Common Divisor

public int gcd (int p, int q){
    if (q=-=0){
        return p;
   }
   return gcd (q, p%q);
}

No comments:

Post a Comment