Computer Science, asked by ajvismay2003, 5 months ago

Write a python program to check a number whether it is even or odd.​

Answers

Answered by BushraVahidKazi
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 kuhu005
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