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)
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
Post a Comment