Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pgcd python

def pgcd(a, b): # En utilisant l'algorithm d'euql
    while b:
        a, b = b, a % b
    return max(a, -a)
 
PREVIOUS NEXT
Tagged: #pgcd #python
ADD COMMENT
Topic
Name
3+6 =