Python program to check whether the given number is even or odd.

#Program that will check whether entered number is even or odd.

N = input("Enter Number to check: ")
N = int(N)

if N%2 == 0:
    print("%d is an even number."% N)
else:
    print("%d is an odd number."% N)

Comments

Popular posts from this blog

Python program to calculate age and year when user will be 100 years old

Python program to print numbers less than 5 from the list.