不正经题解
2026-01-26 21:24:34
发布于:上海
3阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
//开头
int main(){
int n;//定义n
cin >> n;//输入n
if(n > 0) cout<<"positive"<<endl;//判断正负
else if(n == 0) cout<<"zero"<<endl;
else cout<<"negative"<<endl;
return 0;
}
这里空空如也




有帮助,赞一个