/*
输入a,b,c三个值,输出最大者
要点:1、printf的用法
2、scanf的用法
3、可以转为函数使用
*/
#include <stdio.h>
main(void)
{
int a,b,c,max;
printf("please input a,b,c:/n");
scanf("%d,%d,%d",&a,&b,&c);
max=a;
if(max<b)
max = b;
if(max<c)
max = c;
printf("The largest number is %d/n",max);
}
/*运行结果如下:
**please input a,b,c:
**1,2,3
**The largest number is 3
*/