Computer Science, asked by manandhall480, 6 months ago

Write python program to input a number and check whether it is Even or odd.

Answers

Answered by skvijay36
10

Answer:

Explanation:

Python Program to Check if a Number is Odd or Even

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

Similar questions