ch05
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
# functions.py
|
||||
|
||||
def gcd(a, b):
|
||||
"""Calculate the Greatest Common Divisor of (a, b). """
|
||||
while b != 0:
|
||||
a, b = b, a % b
|
||||
return a
|
||||
Reference in New Issue
Block a user