A number N is given as input. Write a program to check if N is positive or negative.
N = -12.5. As the value of N is less than 0, the output should be Negative.
N = float(input())
if N > 0:
print('Positive')
elif N < 0:
print('Negative')
else:
print('Zero')
Comments
Leave a comment