//三个数求最大值
#include<stdio.h>
int main()
{
int a;
int b;
int c;
int d;
scanf("%d%d%d", &a, &b,&c);
if (a > b)
d = a;
else d = b;
if (d > c)
d = d;
else d = c;
printf("最大的数是%d", d);
return 0;
}
微信扫一扫
//三个数求最大值
#include<stdio.h>
int main()
{
int a;
int b;
int c;
int d;
scanf("%d%d%d", &a, &b,&c);
if (a > b)
d = a;
else d = b;
if (d > c)
d = d;
else d = c;
printf("最大的数是%d", d);
return 0;
}
相关推荐