csea2020pb003 Positive Negative Zero
Submit solution
C
Points:
10 (partial)
Time limit:
2.0s
Memory limit:
12M
Authors:
Problem type
Allowed languages
Problem Definition
Write a C program to determine if a set of entered integers is positive,negative or zero.
Input Format
The number of integers is given in the first line followed by one number in each line as the input.
Output Format
The output will be a word positive,negative, or zero printed depending upon the input
Sample Input
3
1
-3
0
Sample Output
positive
negative
zero
Comments