偶尔做点水题没事吧?
2026-08-15 21:38:22
发布于:浙江
2阅读
0回复
0点赞
前方核能:
#include<bits/stdc++.h> 万能头文件。
using namespace std; 命名空间。
int main(){ 主函数。
int n;
cin >> n;
if(n > 0){
cout << "positive"; ‘1’输出。
}
if(n == 0){
cout << "zero"; ‘2’输出。
}
if(n < 0){
cout << "negative"; ‘3’输出。
}
return 0; 结束符。
}
这里空空如也




有帮助,赞一个