Python program to find even odd numbers
x = int(input("Insert any number: "))
if x % 2 == 0:
print("This is an EVEN number!")
else:
print("This is an ODD number!")
Output:
|
Insert any number: 121 |
|
Insert any number: 512 |
In this python program we ask user to enter a number, then convert given input to integer and then will check the number is even or odd.