Advertisement
George_Ivanov05

0.5

Jul 4th, 2021
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. def function(num1: int, num2: int, num3: int):
  2.     result = num1 * num2 * num3
  3.     if result < 0:
  4.         print("negative")
  5.     elif result == 0:
  6.         print("zero")
  7.     elif result > 0:
  8.         print("positive")
  9.  
  10.  
  11. num1_input = int(input())
  12. num2_input = int(input())
  13. num3_input = int(input())
  14.  
  15. function(num1_input, num2_input, num3_input)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement