write a python programto check whether a number is positive,negative or zero
Answers
Answered by
7
Answer:
Source Code: Using if...elif...else
num = float(input("Enter a number: "))
if num > 0:
print("Positive number")
elif num == 0:
print("Zero")
else:
print("Negative number")
=>Here, we have used the if...elif...else statement. We can do the same thing using nested if statements as follows....
Explanation:
Hope it may helps u...
Answered by
2
Answer:
THANKS FOR FREE POINTS MY FRIEND BUT DONT LEAVE BRAINLY
Similar questions