Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- num = int(input("Enter a number: "))
- if num > 0:
- print(num, "is positive.")
- elif num < 0:
- print(num, "is negative.")
- else:
- print(num, "is zero.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement