How to find odd numbers and even numbers Python
x =int(input("Enter value x:"))
if x % 2 == 0:
print(x,"Is Even Number")
else:
print(x, "Is Odd Number")
Output
Enter value x:10
10 Is Even Number
Tags
PYTHON
-
How to find odd numbers and even numbers Python