比较四个数的大小
#include<stdio.h>int MAX(int a, int b)
{
if
(a >= b)
return a;
else
return b;
}
int main ()
{
int a, b, c, d, max1, max2;
printf ("please input four integer :\n");
scanf("%d%d%d%d\n",&a,&b,&c,&d);
printf ("%d%d%d%d\n",a, b, c, d);
max1 = MAX(a,b);
printf ("max1 = %d\n",max1);
max2 = MAX(c,d);
printf ("max2 = %d\n",max2);
printf ("MAX = %d",MAX(max1, max2));
return 0;
}
这个又哪里错了,能编译啊