> 其他 >
怎样求三个数的最大值?要是c语言的!
人气:140 ℃ 时间:2020-04-09 23:10:21
解答
#includemain(){int a,b,c;scanf("%d,%d,%d",&a,&b,&c);if((a>b)&&(a>c))printf("the max is:%d",a);else if((b>a)&&(b>c))printf("the max is:%d",b);elseprintf("the max is:%d",c);}
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版