Computer Science, asked by kumarakash26012003, 7 months ago

write a python program to enter a number and check whether it is even or odd​

Answers

Answered by SansleshTelang
20

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

Explanation:

please mark me as brainliest

Answered by chandanum
3

Answer:

Please mark me as brianliest ✌️

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