#include<stdio.h>
int main()
{
int max(int x,int y); //对被调用函数max的声明
int a,b,c;
scanf("%d%d",&a,&b);
c=max(a,b);
printf("max=%d\n",c);
}
int max(int x,int y) //定义max函数,函数值为整型,形式参数x和y为整型
{
int z;
if(x>y)z=x;
else z=y;
}
04-18
1124
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
10-02
493
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
01-21
1423
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
04-03
4231
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交