Computer Science, asked by Anonymous, 9 months ago

write a python programto check whether a number is positive,negative or zero​

Answers

Answered by yashika1951
7

Answer:

\huge\blue{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:

<marquee behaviour ="side" direction ="down" style="background:purple">Hope it may helps u...

Answered by priyankababy
2

Answer:

THANKS FOR FREE POINTS MY FRIEND BUT DONT LEAVE BRAINLY

Similar questions