#include <stdio.h>
int main()
{
int a,b,c,d,max;
int max4(int a,int b,int c,int d);
printf("input data:
");
scanf("%d%d%d%d",&a,&b,&c,&d);
max = max4(a,b,c,d);
printf("max is :%d",max);
return 0;
}
int max4(int a,int b,int c,int d)
{
int max2(int a,int b);//max2声明
int m;
m = max2(a,b);
m = max2(c,m);
m = max2(d,m);
return m;
}
int max2(int a,int b)
{
if(a>=b)
return a;
else
return b;
}