Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/mcd.py Secret

Created March 30, 2021 17:51
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/0ad1eceda85a29a28474e2f64794b9bc to your computer and use it in GitHub Desktop.
Save parzibyte/0ad1eceda85a29a28474e2f64794b9bc to your computer and use it in GitHub Desktop.
def maximo_comun_divisor(a, b):
temporal = 0
while b != 0:
temporal = b
b = a % b
a = temporal
return a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment