Write a program to check whether the given number is positive,negative or zero in Python.
Answers
Answered by
6
Answer:
Python Program to Check if a Number is Positive, Negative or Zero. # 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
Psychology,
1 month ago
History,
1 month ago
India Languages,
1 month ago
Accountancy,
3 months ago
Math,
3 months ago