← Control Flow

Sign Classifier

easy

Read one integer and print exactly one word describing its sign: Positive, Negative, or Zero.

This is the smallest possible if/else if/else chain, but it’s worth building deliberately: three outcomes that can never overlap should be three branches of one chain, not three independent if statements that each re-check the same variable.

Your solution

"Run" uses the sample stdin ("7"). "Submit" checks your code against all 3 test cases.

Test results

Submit your solution to run it against all test cases.

Hints

    Reference solution