初学函数条用,不知哪里出错了
初学函数条用,不知哪里出错了,请教一下大家#include<stdio.h>
int main()
{
int max(int x,int y);
int a,b,c;
printf("Please enter two integer numbers:");
scanf("%d%d",&a,&b);
c=max(a,b);
printf("The max is %d\n",c);
return 0;
}
int max(int x,int y)
{
int z;
z=a>b?a:b;
return z;
}