Advertisement
VanoHa

a<b<c

Mar 12th, 2020
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. a = int(input())
  2. b = int(input())
  3. c = int(input())
  4. if a < b and a < c:
  5.     a1 = a
  6. elif b < a and b < c:
  7.     a1 = b
  8. else:
  9.     a1 = c
  10. if b > a and b < c:
  11.     b1 = b
  12. elif c > a and c > b:
  13.     b1= c
  14. else:
  15.     b1 = a
  16. if c > a and c > b:
  17.     c1 = c
  18. elif b > c and b > a:
  19.     c1 = b
  20. else:
  21.     c1 = a
  22. print(a1, b1, c1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement