WAP to check whether the number is odd or even and positive or negative in python
Attachments:
Answers
Answered by
13
Srijan, mujhe Kuch puchna hai tumse
Silly yet important
So can you come to that app
Answered by
6
Answer:
hey dude!
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))
Similar questions