#include <stdio.h>
int main(void)
{
int a,b,c;
int x;
printf(" 請输入a b c : ");
scanf("%d %d %d",&a,&b,&c);
if(a > b,a > c)
x = a;
if(b > a,b > c)
x = b;
if(c > a,c > b)
x = c;
printf(" 最大是:%d\n",x);
return 0;
}
#include <stdio.h>
int main(void)
{
int a,b,c;
int x;
printf(" 請输入a b c : ");
scanf("%d %d %d",&a,&b,&c);
if(a > b,a > c)
x = a;
if(b > a,b > c)
x = b;
if(c > a,c > b)
x = c;
pri ...
程序代码:
if(a > b&&a > c)
x = a;
if(b > a&&b > c)
x = b;
if(c > a&&c > b)
x = c;