#include <stdio.h>
int main()
{ int a,b,c,max;
printf("please input a,b,c:\n");
scanf("%d,%d,%d",&a,&b,&c);
max=a;
if (max<b) max=b;
if (max<c) max=c;
printf("the largest number is %d\n",max);
return 0;
}
#include <stdio.h>
int main()
{ int a,b,c,max;
printf("please input a,b,c:\n");
scanf("%d,%d,%d",&a,&b,&c);
max=a;
if(max<b) max=b;
if(max<c) max=c;
printf("the largest number is %d\n",max);
return 0;
}我完成任务了,运行了,是不是你的if离(太远了啊