Created
July 9, 2014 18:56
-
-
Save nuit/85091f9a67416db1c7b4 to your computer and use it in GitHub Desktop.
Algoritmo de Euclides
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def mdc(a,b): | |
while(b!=0): | |
c=a%b | |
a=b | |
b=c | |
print a | |
mdc(2024,748) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment