Monday, May 16, 2011

GCD


int gcd (int x, int y)

{


    if ( y == 0 )

        return x;




    return gcd (y, x % y);


}