Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python euclidean algorithm

def gcd(a, b):
    while b:
        a, b = b, a % b
    return a
 
PREVIOUS NEXT
Tagged: #python #euclidean #algorithm
ADD COMMENT
Topic
Name
3+1 =