这段代码最大的亮点是:精炼。以后的代码要以此为鉴。

#include <stdio.h>

int main()
{
    int max4(int a,int b,int c,int d);
    int a,b,c,d;
    scanf("%d %d %d %d",&a,&b,&c,&d);
    printf("The max num is : %d\n",max4(a,b,c,d));
    return 0;
}
int max4(int a,int b,int c,int d)
{
    int max2(int x,int y);
    return max2(max2(max2(a,b),c),d);
}
int max2(int x,int y)
{
    return x>y?x:y;
}