69,382
社区成员
发帖
与我相关
我的任务
分享
#include "stdio.h"
#include "stdlib.h"
//#include<windows.h>
int main()
{
int a, b, c, max;
scanf("%d,%d,%d",&a, &b, &c);
(a >= b) ? (max = a) : (max = b);
(max >= c) ? (max = max) : (max = c);
printf("\r\nmax is:%d\r\n",max);
system("pause");
}
输入输出:
1,2,3
max is:3
请按任意键继续. . .