WAP to check whether the number is odd or even and positive or negative in python
Answers
Answered by
4
Answer:
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))
Hope so I am right
PRATAP
NAYAK
Answered by
0
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))
Plz Mark Me Brainlist If It Helped You
Similar questions