3 Program to check if a Number is positive, negative or zero in Python

Program:

num = int(input("Enter any Number:"))



if num < 0:

    print("Number is Negative")

elif num > 0:

    print("Number is Positive")

else:

    print("Number is Zero")


Output:

Number is positive, negative or zero in Python

Previous
Next Post »