Computer Science, asked by tanishkabarkare, 2 months ago

write a program to enter a number and check if the number is positive, negative or zero using if-elif structure​

Answers

Answered by Purva2137
2

Answer:

hope it helps you

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 XxBadCaptainxX
1

Answer:

Answer in attachment.

Hope it will help you .

Attachments:
Similar questions