循环解题
2026-07-02 17:23:18
发布于:浙江
4阅读
0回复
0点赞
使用循环的答案:
#include<bits/stdc++.h>
using namespace std;
int main()
{
int a,b,c,max=0;
cin>>a>>b>>c;
for(int i=0;i<=3;i++){
if(a>max)max=a;
if(b>max)max=b;
if(c>max)max=c;
}
cout<<max;
return 0;
}
这里空空如也



有帮助,赞一个