Python Program to Check Whether the Number is Positive or Negative or Zero
What is Positive Number Negative Number or Zero Number?
A number is positive if its value is greater than Zero. And a
number is negative if its value is less than zero. Otherwise the number is zero
Source Code Example:
Source Code Example:
a = int(input("Enter number:")) if a>= 0: print(a," is Positive Number") elif a<0: print(a," is Negative Number") else: print(a, " is Zero Number")
Post a Comment