day1/exercise/gcd.py
author Nishanth Amuluru <nishanth@fossee.in>
Tue, 14 Dec 2010 23:15:36 +0530
branchscipyin2010
changeset 456 a27ccfc118fb
parent 428 ee689f7c3122
permissions -rw-r--r--
removed sslc1.txt from circulate since it is not required

def gcd(a, b):
    if a % b == 0:
        return b
    return gcd(b, a%b)

print gcd(5, 40)
print gcd(11, 60)