Created
November 11, 2011 19:26
-
-
Save tomwolber/1358958 to your computer and use it in GitHub Desktop.
euc.py
This file contains 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
a = input("enter first number: ") | |
b = input("enter second number: ") | |
while b != 0: | |
if a > b: | |
a -= b | |
else: | |
b -= a | |
print a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment