Write a program to check and display whether agiven number is positive , negative or zero. in python
Answers
Answered by
0
Explanation:
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")
Answered by
0
Answer:
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
Math,
1 month ago
English,
3 months ago
Environmental Sciences,
9 months ago
History,
9 months ago
English,
9 months ago