极限扫盲——三个判断分开
2026-08-28 19:55:38
发布于:黑龙江
5阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int a,b,c;
int main(){
cin>>a>>b>>c;
if(a>0){
cout<<a<<endl;
}
if(b>0){
cout<<b<<endl;
}
if(c>0){
cout<<c<<endl;
}
return 0;
}
这里空空如也
2026-08-28 19:55:38
发布于:黑龙江
#include <bits/stdc++.h>
using namespace std;
int a,b,c;
int main(){
cin>>a>>b>>c;
if(a>0){
cout<<a<<endl;
}
if(b>0){
cout<<b<<endl;
}
if(c>0){
cout<<c<<endl;
}
return 0;
}
这里空空如也
提交答案之后,这里将显示提交结果~
有帮助,赞一个