#t222. 判断数正负
判断数正负
Determine the Sign of a Number
Problem Description
Given an integer , determine whether it is positive, zero, or negative.
Input Format
One integer .
Output Format
If , output positive;
if , output zero;
if , output negative.
Sample Input
1
Sample Output
positive
Hint
- Three branches: positive, zero, negative.
- Equality testing uses two equals signs
==; one=is assignment — getting this wrong usually doesn't produce a compiler error, but the result is wrong. - The output is lowercase words; print them exactly as shown.