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 To Check student is Pass or Fail In Exam

Building a Face Recognition Attendance System with Python