一道简单题
2026-10-07 13:42:41
发布于:浙江
0阅读
0回复
0点赞
无需多言,判断即可
最好不要只用用if
C++代码:
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin>>n;
if(n>0)cout<<"positive";
else if(n==0)cout<<"zero";
else if(n<0)cout<<"negative";
return 0;
}
这里空空如也






有帮助,赞一个