#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if(a>b){
if(a>c)
cout<<a<<endl;
else
cout<<c<<endl;
}
else{
if(b>c)
cout<<b<<endl;
else
cout<<c<<endl;
}
return 0;
}
献上一个最笨的代码,评论区来你们的代码呀~
0.0分
3 人评分
#include<iostream> using namespace std; int main() { int a = 0; int b = 0; int c = 0; cin >> a >> b >> c; if (b > a) { a = b; if (c > a) { a = c; } } cout << c; return 0; }
#include <stdio.h> #include <stdlib.h> int main() { int a=10; int b=20; int c=30; if(c>b) if(c>a) printf("%d",c); if(b>c) if(b>a) printf("%d",b); if(a>b) if(a>c) printf("%d",a); return 0; }
【绝对值排序】 (C语言代码)浏览:713 |
C语言程序设计教程(第三版)课后习题4.9 (C语言代码)浏览:377 |
C语言程序设计教程(第三版)课后习题5.5 (C语言代码)浏览:559 |
C语言程序设计教程(第三版)课后习题1.5 (C++代码)浏览:1078 |
A+B for Input-Output Practice (V) (C语言代码)浏览:617 |
C语言程序设计教程(第三版)课后习题5.4 (C语言代码)浏览:1294 |
wu-淘淘的名单 (C++代码)浏览:1331 |
C语言程序设计教程(第三版)课后习题6.6 (C++代码)浏览:624 |
字符逆序 (C语言代码)浏览:609 |
【偶数求和】 (C语言代码)浏览:430 |
啦啦啦 2019-05-14 18:10:38 |
只输出了c的值,不对,没有考虑b小于a大于c。还有b大于a大于c的情况