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