Solution
PYTHON
number = float(input("Enter a number: "))
if number > 0:
print("The number is positive")
elif number < 0:
print("The number is negative")
else:
print("The number is zero")
The program takes a number as input. The if-elif-else statement checks three conditions: greater than zero, less than zero, or neither (zero), and prints the matching message.