#include<stdio.h>

//1

int main(){

int a, b, c,
printf("请输入三个整数");
scanf("%d,%d,%d",&a,&b,&c);
if (a>b)

if (b < c)
printf("max=%d\n",c);
else
printf("max=%d\n", b);
else if(a<c)
printf("max=%d\n", c);
else
printf("max=%d",a);

return 0;
}

#include<stdio.h>

//2

int a, b, c,max,temp;
printf("请输入三个整数");
scanf("%d,%d,%d", &a, &b, &c);
temp = (a>b)?a:b;//将a和b中较大者存入temp中
max = (temp > c) ? temp : c;//将a和b中最大者与c比较,取最大者
printf("三个整数最大是%d\n", max);

return 0;

}