fr0stn1k

Untitled

Mar 4th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.46 KB | None | 0 0
  1. import math
  2.  
  3. a1 = math.fabs(int(input()))
  4. b1 = math.fabs(int(input()))
  5. c1 = math.fabs(int(input()))
  6. a2 = math.fabs(int(input()))
  7. b2 = math.fabs(int(input()))
  8. c2 = math.fabs(int(input()))
  9. S1 = a1 * b1 * c1
  10. S2 = a2 * b2 * c2
  11. if S1 > S2:
  12.     print("The first box is larger than the second one")
  13. elif S1 < S2:
  14.     print("The first box is smaller than the second one")
  15. elif S1 == S2:
  16.     print("Boxes are equal")
  17. else:
  18.     print("Boxes are incomparable")
Advertisement
Add Comment
Please, Sign In to add comment