Problem 775
Positive, Negative or Zero
Easy · 10 pts · Basics, Conditionals
Problem
Read an integer N and say whether it is positive (greater than zero), negative (less than zero) or zero. This exercise practises if / else if / else chains: check one case, then the next, and handle whatever remains in the final else. Print exactly one of the words Positive, Negative or Zero.
Input
A single integer N.
Output
Print Positive, Negative or Zero.
Constraints
-10^9 <= N <= 10^9
Example input
-8
Example output
Negative
Explanation
-8 is less than zero, so the answer is Negative. 5 would be Positive, and 0 is neither, so it is Zero.