A310.判断正负题解:
2026-02-10 10:12:04
发布于:四川
2阅读
0回复
0点赞
A310.判断正负
三个if
#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
if(n>0){
cout << "positive";//判断>0
}else if(n==0){//判断==0
cout << "zero";
}else cout << "negative";
return 0;
}
这里空空如也






有帮助,赞一个