2398 判断数正负

#include<bits/stdc++.h>
#define f(i,s,e) for(int i = s; i <= e; i++)
#define ll long long
using namespace std;
const int N = 1e3+10,inf = 0x3f3f3f3f;

int main()
{
    int n;
    cin >> n;
    if(n > 0) cout << "positive";
    else if(n == 0) cout << "zero";
    else cout << "negative";
    return 0;
}

 

posted @ 2024-07-03 16:33  CRt0729  阅读(3)  评论(0编辑  收藏  举报