Computer Science, asked by sunilmrathod2565, 2 months ago

Write a simple program to accept a value from the user & display whether it is even or odd.
This question is from python program
Sub: Computer

Answers

Answered by jeevanjk1919
0

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