write a python program to enter a number and check whether it is even or odd
Answers
Answered by
20
Answer:
Python Program to Check if a Number is Odd or Even
1. num = int(input("Enter a number: "))
2. if (num % 2) == 0:
3. print("{0} is Even number". format(num))
4. else:
5.print("{0} is Odd number". format(num))
Explanation:
please mark me as brainliest
Answered by
3
Answer:
Please mark me as brianliest ✌️
Explanation:
Python Program to Check if a Number is Odd or Even
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,
3 months ago
English,
3 months ago
Sociology,
7 months ago
Psychology,
7 months ago
CBSE BOARD X,
1 year ago