Computer Science, asked by praveenkumar72335, 7 months ago

Write a Python program to enter a number and check whether it is even or

odd.​

Answers

Answered by anubhab28
4

Answer:

Python Program to Check if a Number is Odd or Even

1. num = int(input("Enter a number: "))

2.if (num % 2) == 0:

3.print("{0} is Even number". format(num))

4.else:

5.print("{0} is Odd number". format(num))

Answered by kookiesandmilk
0

Answer:

num=int(input("Enter a number"))

if (num%2==0):

print("It is a even number")

else:

print("It is a odd number")

Similar questions