write a python program to examine a number whether is is odd or even by using if---else statement
Answers
Answered by
2
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))
mark me as brainlist
Similar questions
History,
23 hours ago
English,
1 day ago
Social Sciences,
1 day ago
Social Sciences,
8 months ago
Chemistry,
8 months ago