write a program that will check whether the number given by the user is positive or negative
Answers
Answered by
1
num = add your number here
if num > 0:
print("Positive number")
elif num == 0:
print("Zero")
else:
print("Negative number")
# Checking for odd and even
if (num % 2) == 0:
print("{0} is Even".format(num))
else:
print("{0} is Odd".format(num))
Similar questions