write a program to check whether the no. is even or odd in python
Answers
Answered by
20
Answer:
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))
If It helps mark as brainliest
Answered by
8
Answer:
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