Computer Science, asked by arpanakalita5042, 4 months ago

write a program that will check whether the number given by the user is positive or negative​

Answers

Answered by tseries12345678901
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