Create a program to check if a number input by the user is a positive or a negative number.
Answers
Answered by
3
Explanation:-
# In this python program, user enters a number and checked if the number is positive or negative or zero. num = float(input("Enter a number: ")) if num > 0: print("Positive number") elif num == 0: print("Zero") else: print("Negative number") ·
Similar questions