C语言代码 编写一个程序,输入3个整数,输出其中最大的数?
C语言代码 编写一个程序,输入3个整数,输出其中最大的数?
日期:2019-11-17 21:46:05 人气:1
用条件判断语句,以下是代码:
#include
#include
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 if(c>=a&&c>=b)
printf("%d",c);