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.42 KB | None | 0 0
  1. # WITHOUT MULTIPLYING THE 3 NUMBERS.
  2.  
  3. def function(num1: int, num2: int, num3: int):
  4.     if num1 < 0 or num2 < 0 or num3 < 0:
  5.         print(f"negative")
  6.     elif num1 == 0 or num2 == 0 or num3 == 0:
  7.         print("zero")
  8.     elif num1 > 0 and num2 > 0 and num3 > 0:
  9.         print("positive")
  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