adding univeristy latex files
This commit is contained in:
10
2_main_body/code/gcd.py
Normal file
10
2_main_body/code/gcd.py
Normal file
@@ -0,0 +1,10 @@
|
||||
import library
|
||||
|
||||
# GCD of a and b
|
||||
def my_gcd(a, b):
|
||||
t = b
|
||||
while not b == 0:
|
||||
t = b
|
||||
b = a % b
|
||||
a = t
|
||||
return a
|
||||
Reference in New Issue
Block a user