Write a python program to input a number find out it is even or odd.
Answers
Answered by
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
English,
5 months ago
Social Sciences,
5 months ago
English,
10 months ago
Science,
1 year ago
English,
1 year ago