Skip to content

Instantly share code, notes, and snippets.

@tomwolber
Created November 11, 2011 19:26
Show Gist options
  • Save tomwolber/1358958 to your computer and use it in GitHub Desktop.
Save tomwolber/1358958 to your computer and use it in GitHub Desktop.
euc.py
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