#include
int main()
{
int a,b,c;
int max(int x,int y);
printf("please input a and b :");
scanf("%d,%d\n",&a,&b);
c = max(a,b);
printf("the max number is %d\n",c);
return 0;
}
int max(int x,int y)
{
int z;
if (x > y) z=x;
else z=y;
return (z);
}
怎么编译执行后都是返回第一个输入整数呢?貌似语句没错啊!
阅读(601) | 评论(2) | 转发(0) |