求三个数的最大数,不知道错在哪里
# include <stdio.h>int main(void)
{
int max(int x, int y, int z);
int a, b, c, d;
scanf("%d,%d,%d",&a,&b,&c );
d = max(a, b, c);
printf("max = %d\n",d);
}
int max(int x, int y, int z);
{
int m;
if(x > y >z) m = x;
if(x > z >y) m = x;
if(y > x >z) m = y;
if(y > z >x) m=y
else m=z
return(m);
}