Determining if an integer is positive, negative, or zero

Report a typo

Create a program that takes an integer as input. The program should print 'Positive' if the number is greater than 0, 'Negative' if the number is less than 0 and 'Zero' if the number is 0.

Sample Input 1:

3

Sample Output 1:

Positive

Sample Input 2:

-1

Sample Output 2:

Negative
Write a program in Python 3
Loading...

Create a free account to access the full topic