Positive, Negative or Zero

Report a typo

Write a program that reads an integer from input and prints:

  • "negative" if the number is less than 0;

  • "positive" if the number is greater than 0;

  • "zero" if the number equals 0.

Do not output double quotes.

Sample Input 1:

-5

Sample Output 1:

negative
Write a program in Python 3





___

Create a free account to access the full topic