问个比较傻的问题!!
void main(){int a,b,c,max;
printf("input three numbers: ");
scanf("%d%d%d",&a,&b,&c);
if(a>b)
{max=a;}
else
{max=b;}
if(max<c)
max=c;
else
if(b>c)
max=c;
printf("max=%d\",max);
}
---------------------------------------------------------------------
void main(){
int a,b,c,max,min;
printf("input three numbers:\n ");
scanf("%d,%d,%d",&a,&b,&c);
if(max<c)
max=c;
else
if(b>c)
max=b;
printf("max=%d\n",a>b?a:b);
}
上面的程序缩写成下面的了!!下面还能缩写吗? 睡觉等答案!