小白求助 帮忙看下有无错误
c4droid吧
全部回复
仅看楼主
level 5
#include<stdio.h>
main() {
float a, b, c, max;
scanf("%f % f% f", &a, &b, &c);
if (a > b)
max = (a > c) ? a : c;
else
max = (b > c) ? b : c;
printf("max = %f\n", max);

2016年10月06日 14点10分 1
level 10
main前加一个int
2016年10月06日 14点10分 2
加了还是有问题 得不到想要的结果
2016年10月06日 14点10分
level 14
%和f之间不能有空格
2016年10月06日 14点10分 4
谢谢 这个能不能求a b c最大值
2016年10月06日 16点10分
问题解决了
2016年10月06日 16点10分
1