到底哪里错了。我是菜鸟
# include <stdio.h>int main()
{float a,b,c,d;
float temp1 ,temp2,temp3,temp4,average,max,min;
printf("请输入四个数:");
scanf("%f,%f,%f,%f,&a,&b,&c,&d");
temp1=(a>b)?a:b;
temp2=(temp1>c)?temp2:c;
max=(temp2>d)?temp2:d;
temp3=(a<b)?a:b;
temp4=(temp3<c)?temp3:c;
min=(temp4<d)?temp4:d;
average=1/4*(a+b+c+d);
prinf("四个数中最大数是%f/n",max);
printf("四个数中最小数是%f/n",min);
printf("四个数的平均数是%f/n",average);
return 0;
}