从键盘上输入3个数,然后输出3个数中的最大数。用C语言完成,
#include <stdio.h>
int main(void)
{
int a,b,c;
scanf("%d%d%d",&a,&b,&c);
if(a > b && b > c){
printf("%d",a);
}else if(b > a && a > c){
printf("%d",b);
}else{
printf("%d",c);
}
return 0;
}