Computer Science, asked by priyanshibafna, 19 days ago

Write a program to accept a number and check for the number being positive, negative or zero and print an appropriate message using if elif.

Answers

Answered by Anonymous
1

Answer:

number = int(input("Enter a number:  "))

if number > 0:

   print(number, " is a positive number")

elif number < 0:

   print(number, " is a negative number")

elif number == 0:

   print(number, " is zero")

Similar questions