Write A Python Program To Python Program to Check if a Number is Positive, Negative or 0

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

Code:

number = int(input("Enter The Number :"))
if number>0 :
    print(number,"is Positie Number")
elif number<0 :
    print(number,"is Negative Number")
else:
    print("This Is Zeor")

Output:

Enter The Number :25
25 is Positie Number
Enter The Number :-25
-25 is Negative Number
Enter The Number :0
This Is Zeor

Download Code

Comments

Popular posts from this blog

Write A Python Program, Create n Empty Dictionary Allow 4 Friends To, Enter Their Favorite Programming Language As values and User Keys as their Name Assume That The Names Are Unique.

Write Python Program To Store Seven Fruits Name In a List Enter By The User