PYTHON PROGRAMMING
Write a program to enter a number from user and identify whether the number is even or odd. Print the relevant message on the screen. Paste output also.
Answers
Answered by
2
Answer:
Explanation:
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
English,
2 months ago
Biology,
2 months ago
Math,
5 months ago
Math,
5 months ago
Social Sciences,
11 months ago