#include <stdio.h>
main()
{
int max(int,int,int);
int a,b,c,z;
printf("please input three number, warning write',':\n");
scanf("%d,%d,%d",&a,&b,&c);
z=max(a,b,c);
printf("max=%d press any key to exit!",z);
getch();
}
int max(int x,int y,int w)
{
int max_3;
if (x>y) max_3=(x>w)?x:w;
else max_3=(y>w)?y:w;
return max_3;
}
我也是新手,一起学习~!(以上代码调试过,可以通过~!)