C语言程序设计-谭浩强

时间:2020-03-12 17:11:09   收藏:0   阅读:52

求三位中最大的数

 

#include<stdio.h>
int main()
{
int a, b, c;
scanf("%d%d%d", &a, &b, &c);
if (a>b&&a>c)
printf("%d", a);
else if (b>a&&b>c)
printf("%d", b);
else
printf("%d", c);

return 0;
}

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!