Write a python program to check a number whether it is even or odd.
Answers
Answered by
6
num = int(input("Enter a number: "))
if (num % 2) == 0:
print("{0} is Even number". format(num))
else:
print("{0} is Odd number". format(num))
Answered by
6
Explanation:
num = int(input("Enter a number: "))
if (num % 2) == 0:
print("{0} is Even number".format(num))
else:
print("{0} is Odd number".format(num))
hope it's helpful to you......
give thanks to my answer nd follow me pliss
Similar questions