Advertisement
T-D-K

Untitled

Apr 26th, 2018
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.20 KB | None | 0 0
  1. a,b = map(float, input().split())
  2. r1 = a + b
  3. r2 = a - b
  4. if (r1 > r2):
  5.     print(str(r2) + " " + str(r1))
  6. else:
  7.     if (r1 < r2):
  8.         print(str(r1) + " " + str(r2))
  9.     else:
  10.         print(str(r1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement