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