#include "stdafx.h"

int max2(int a,int b)
{
    
    if(a>b)
        return a;
    else
        return b;    
}

int max4(int a,int b,int c,int d)
{

    int max2(int,int);
    int m;
    m=max2(a,b);
    m=max2(m,c);
    m=max2(m,d);
    return m;

}

int main(int argc, char* argv[])
{
    int a,b,c,d;
    int max;
    scanf("%d%d%d%d",&a,&b,&c,&d);
    max=max4(a,b,c,d);
    printf("max=%d\n",max);
    return 0;
}

 实验五3 随笔

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。