SZanlongo
9/18/2014 - 1:57 AM

Find greatest common divisor

Find greatest common divisor

# https://stackoverflow.com/questions/691946/short-and-useful-python-snippets
def gcd(a, b):
    while(b):
        a, b = b, a % b
    return a
print gcd (54, 24)