Set 100Question 36

Nadia's Sign Detector

Very easyWritten in CMust finish in 2 seconds

Nadia is cleaning a dataset at a hospital's records desk and needs to classify each number as POSITIVE, NEGATIVE, or ZERO.

What your program reads

One integer N.

What your program prints

"POSITIVE", "NEGATIVE", or "ZERO".

Limits

-10^9 ≤ N ≤ 10^9

Example input

697

Expected output

POSITIVE
main.c

Your work is saved in this browser as you type.

Loading editor…
Input for Run

Run tries your code on the input above and shows what it prints. Submit checks your output against every test, including hidden ones.

Shortcut: Ctrl + Enter sends it to the judge.

Nadia's Sign Detector · DIU ContestHub