summaryrefslogtreecommitdiff
path: root/testing_and_debugging/gcd.py
blob: 5bc911052de9488329d5fbbe4a60b86501b00245 (plain)
1
2
3
4
5
6
7
8
9
10
11
def gcd(a, b):
    if a%b==0:
       return a
    return gcd(b, a%b)

#if __name__ == '__main__':
#     result = gcd(48, 64)
#     if result != 16:
#         print "Test failed"
#     print "Test Passed"