int temp; if (a > b && a > c) temp = a; if (b > a && b > c) temp = b; if (c > a && c > b) temp = c; } int main() { int a, b, c; printf("请输入三个数字:"); scanf("%d%d%d",&a,&b,&c); printf("三个数字的最大值为: %d ", max(a, b, c)); r...
这不太对吧,你运行的程序不是你当前代码的编译产物。按照代码,直接按照a,b,c输入就行,例如:2,4...
{ int temp; if (a > b && a > c) temp = a; if (b > a && b > c) temp = b; if (c > a && c > b) temp = c; } int main() { int a, b, c; printf("请输入三个数字:"); scanf("%d%d%d",&a,&b,&c); printf("三个数字的最大值为: %d ", max(a, b, c));...
https://www.zhihu.com/question/840098682/answer/4990775389?utm_psn=1829800858923171840 ...