帮我解答这道C语言习题!!

来源:百度知道 编辑:UC知道 时间:2024/05/31 13:23:16
编写一个C程序,输入a、b、c3嗰值,输出其中最大者。

#include <stdio.h>
main()
{
int a,b,c,max;
scanf("%d %d %d",&a,&b,&c);
max=a;
if(max<b)max=b;
if(max<c)max=c;
printf("The max of a,b,c is %d",max);
}

好久没编写C了.忘记格式了..汗‘‘回家看看书好了