题解
2023-08-09 20:15:57
发布于:浙江
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
if (n > 0) //大于0为正数
cout << "positive";
else if (n == 0) //等于0
cout << "zero";
else
cout << "negative"; //小于0为负数
return 0;
}
这里空空如也
有帮助,赞一个