Computer Science, asked by dia301106, 8 months ago

write a python code to input a number and find its even or not?​

Answers

Answered by Yengalthilak12
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 Kissesmisses
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