#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;
}