牛人指点一下
#include <stdio.h>int main(void)
{
float a,b,c,max;
float max3(float x,float y,float z);
printf("input 3 numbers a b c:");
scanf("%f%f%f",a,b,c);
max=max3(a,b,c);
printf("The max one is:%f",max);
return 0;
}
float max3(float x,float y,float z)
{
float m;
if(x>y)
m=x;
else
m=y;
if(m>z)
m=m;
else
m=z;
return (m);
}