Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. a = int(raw_input())
  2. b = int(raw_input())
  3.  
  4. resto = None
  5. if (b > a):
  6. b, a = a, b
  7. while ((a % b) is not 0):
  8. resto = a % b
  9. b = a
  10. a = resto
  11.  
  12. print b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement