boris-vlasenko

4

Sep 25th, 2015
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. a = int(input('a='))
  2. b = int(input('b='))
  3.  
  4. while a > 0 and b > 0:
  5.     if a < b:
  6.         print(a)
  7.         b = b - a
  8.     else:
  9.         print(b)
  10.         a = a - b
Advertisement
Add Comment
Please, Sign In to add comment