Computer Science, asked by 200407simran, 5 months ago

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