Advertisement
Guest User

Product of 3 numbers

a guest
Feb 27th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. a = float(input())
  2. b = float(input())
  3. c = float(input())
  4.  
  5. if a == 0 or b == 0 or c == 0:
  6. sign = 'zero'
  7. elif a < 0 and b < 0 and c < 0:
  8. sign = 'negative'
  9. elif (a > 0 and b > 0 and c > 0) or (a < 0 and b < 0 and c > 0) or (a < 0 and b > 0 and c < 0) \
  10. or (a > 0 and b < 0 and c < 0):
  11. sign = 'positive'
  12. print(sign)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement