Positive, negative or zero
Read a number and print positive, negative or zero.
Input
5
Expected output
positive
Input
-0.5
Expected output
negative
Show a hint
Use if, else if and else. Check > 0 and < 0; whatever is left is zero.
Show a solution
Loading the editor…
Run the tests to check your solution.