主题:C语言中的max,报错了,怎么调试?
#include <stdio.h>
main(){
int a,b,c;
scanf(“%d,%d,%d”,&a,&b,&c); /*input this way: 4,68,34*/
if (a>b)
if(a>c)
max=a;
else
max=c;
else
if(b>c)
max=b;
else
max=c;
printf(“%d”,max);
}
The running result for the input 4,68,34: