Python/Maths/gcd.py
2018-10-02 14:27:19 +05:30

13 lines
151 B
Python

def gcd(a, b):
if a == 0 :
return b
return gcd(b%a, a)
def main():
print(gcd(3, 6))
if __name__ == '__main__':
main()