调用子函数计算max
#include<stdio.h>
int max(int a,int b,int c)
{int max=a;
if(max<b)
max=b;
if(max<c)
max=c;
return max;
}
main()
{int a,b,c;
scanf("%d%d%d",&a,&b,&c);
printf("%d",max(a,b,c));
}
本文来自博客园,作者:JackieDYH,转载请注明原文链接:https://www.cnblogs.com/JackieDYH/p/17634999.html