【C语言】创建一个函数,并调用比较两个数的大小

#include <stdio.h>
 int max(int x,int y)
{
if(x>=y)
return x;
else
return y;
}
main() 
{
int a,b;
printf("请输入2个数字:
");
scanf("%d%d",&a,&b);
printf("最大值为:%d
",max(a,b));
}
原文地址:https://www.cnblogs.com/HGNET/p/11942947.html