Set 100Question 60

Arif's Sign Detector

Very easyWritten in CMust finish in 2 seconds

Arif is cleaning a dataset at a bank branch 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

220

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.

Arif's Sign Detector · DIU ContestHub