Problem F: 判断数正负

Problem F: 判断数正负

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MiB

Description

给定一个整数n,判断其正负。需要输入一个整数n

如果n>0,输出positive;如果n=0,输出zero;如果n<0,输negative-109n109

if(成立条件表达式){
      当条件成立时需要执行的语句;
}

提示:判断n是否为0

if(n==0)
#include <iostream>
using namespace std;
int main() {
    int n;
    cin >> n;
    if (           ) cout << "positive";
    if (           ) cout << "zero";
    if (           ) cout << "negative";
    return 0;
}


Sample Input Copy

1

Sample Output Copy

positive