int main()
{int a,b,c,max;
printf("input the number is:\n");
scanf("%d,%d,%d",&a,&b,&c);
max=a;
if (max<b) max=b;
if (max<c) max=c;
printf("max=%d",max);
} 用TC运行,结果是max=3129
#include<stdio.h>
int main()
{
int a,b,c;
printf("请输入三个数:");
scanf("%d%d%d",&a,&b,&c);
int n;
n=a>b?(a>c?a:c):(b>c?b:c);
printf("max=%d\n",n);
return 0;
}