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
Comments
Post a Comment