Header Ads

Python Program to Check Whether the Number is Positive or Negative or Zero


Positive, negative, zero, Prime, python, primer number, python prime number, check number is primer or not,  positive number, negative number, python program to check number is positive, python program to check number is negative, python program to check number is zero, 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:

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")

No comments

Powered by Blogger.