下面这段代码可行:
main()
{
int x,y,z,sum;
printf("请输入3个数:\n");
scanf("%d,%d,%d",&x,&y,&z);
if(x>y)
sum=x;
else
sum=y;
printf("%d\n",sum>z?sum:z);
}
main()
{
int x,y,z,sum;
printf("请输入3个数:\n");
scanf("%d,%d,%d",&x,&y,&z);
if(x>y)
sum=x;
else
sum=y;
printf("%d\n",sum>z?sum:z);
}