#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main() {
int a, b, c;
int max;
printf("请输入三个数字!\n");
scanf("%d %d %d", &a, &b, &c);
if (a > b) {
if (a > c) {
max = a;
}
else {
max = c;
}
}
else {
if (b > c) {
max = b;
}
else {
max = c;
}
}
printf("最大的数为%d!\n", max);
return 0;
}
09-01
1432
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-06
2147
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
06-01
2019
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-08