Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(raw_input())
- b = int(raw_input())
- resto = None
- if (b > a):
- b, a = a, b
- while ((a % b) is not 0):
- resto = a % b
- b = a
- a = resto
- print b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement