Add GCD implementation (#371)

This commit is contained in:
João Marcos 2018-10-02 05:57:19 -03:00 committed by Anshul
parent c0033f92ad
commit a31d20acf5

12
Maths/gcd.py Normal file
View File

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