Advertisement
immanual1

positivenegative.py

Jan 13th, 2025
7
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. num = int(input("Enter a number: "))
  2.  
  3. if num > 0:
  4. print(num, "is positive.")
  5. elif num < 0:
  6. print(num, "is negative.")
  7. else:
  8. print(num, "is zero.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement