Computer Science, asked by pramesh6320, 10 months ago

Write a python program to input a number find out it is even or odd.

Answers

Answered by TheMoonlìghtPhoenix
4

Explanation:

ANSWER:-

# To show whether the number is even or odd

n = int(input(" Enter your Input"))

If

n%2 = 0

print("The number is even")

else

print("The number is odd")

Similar Programs:-

# Program to check whether the input is leap year

n = int(input("Enter year"))

If

n%4 = 0

print("The given year is a leap year")

else

print("The given year is not a leap year")

  • int means any integer. The value which is going to be entered is a number, it specifies.

.

Similar questions