3个数比较大小输出最大值,为什么这个不对呢?求大神啊
#include <stdio.h>void mian()
{
int a,b,c,max;
printf("Please enter a,b,c:");
scanf("%d%d%d",&a,&b,&c);
if(a>b)
max=a;
else max=b;
if(max>c)
max=c;
return(max);
printf("max=%d\n",max);
}
2015-04-02 13:54
2015-04-02 14:14
2015-04-03 13:34
2015-04-05 15:03
2015-04-05 15:04
2015-04-05 18:55
2015-04-05 20:21