编写一个程序,从用户输入的三个数中找到最大值,并将该最大值输出

2025-05-21 08:15:56
推荐回答(2个)
回答1:

#include "stdio.h"
void main()
{
int a ,b ,c;
printf("\nPlease input three int:");
scanf("%d%d%d",&a,&b,&c);
printf("Max is %d\n",((a>b?a:b)>c)?(a>b?a:b):c);
}

回答2:

1楼的!!