比较4个数的大小,
为什么这样不行呢?{:soso_e101:}
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a,b,c,d,e,f;
scanf("%d %d %d %d",&a,&b,&c,&d);
if (a>b)
e=a;
else e=b;
if (c>d)
f=c;
else f=c;
if (e>f)
printf("最大的是%d\n",e);
else printf("最大的是%d\n",f);
system("pause");
return 0;
}
|