Loading, please wait...

A to Z Full Forms and Acronyms

Program to Check if a Number is Positive, Negative or 0 | Python

Mar 04, 2021 Python, 1031 Views
Program to Check if a Number is Positive, Negative or 0 | Python

Program to Check if a Number is Positive, Negative or 0 | Python

num = float(input("Enter a number: "))
if num > 0:
   print("Positive number")
elif num == 0:
   print("Zero")
else:
   print("Negative number")
A to Z Full Forms and Acronyms

Related Article