怎样求三个数的最大值?要是c语言的!

怎样求三个数的最大值?要是c语言的!
其他人气:234 ℃时间: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);}
我来回答
类似推荐
请使用1024x768 IE6.0或更高版本浏览器浏览本站点,以保证最佳阅读效果。本页提供作业小助手,一起搜作业以及作业好帮手最新版!
版权所有 CopyRight © 2012-2024 作业小助手 All Rights Reserved. 手机版