Advertisement
immanual1

evenodd.py

Jan 13th, 2025
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. num = int(input("Enter a number: "))
  2.  
  3. if num % 2 == 0:
  4. print(num, "is even.")
  5. else:
  6. print(num, "is odd.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement