程序改为这样也是可以的
#include "stdio.h"
#include "conio.h"
void main()
{int a,b,c;
scanf("%d,%d",&a,&b);
c=max(a,b);
printf("max=%d\n",c);
}
getch();
int max(int x,int y)
{int z;
if(x>y) z=x;
else z=y;
return(z);
}

用代码打出楼房...用编程编出幸福...