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

问题描述:

怎样求三个数的最大值?要是c语言的!
1个回答 分类:综合 2014-11-30

问题解答:

我来补答
#include
main()
{
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);
else
printf("the max is:%d",c);
}
 
 
展开全文阅读
剩余:2000
上一页:hfftbjhg