Computer Science, asked by shreyarani831, 2 months ago

Write a python program to enter a no and check it is even or odd​

Answers

Answered by vishnurenjithk
3

Answer:

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))

I hope this answer will help you

Similar questions