CodeMIRAI
0 XP

Positive, negative or zero

Easy +30 XP Solved

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
JavaScript
Loading the editor…
Run the tests to check your solution.