write a python code to input a number and find its even or not?
Answers
Answered by
17
print out an appropriate message to the user. Python Code: num = int(input("Enter a number: ")) mod = num % 2 if mod > 0: print("This is an odd number. ") else: print("This is an even number.S
Answered by
3
Python Code: num = int(input("Enter a number: ")) mod = num % 2 if mod > 0: print("This is an odd number. ") else: print("This is an even number.
Similar questions