参考程序如下:(我自己编写的,可能有不足之处,望见谅)
#include<stdio.h>
int max(int x,int y)
{
int t;
t=x>y? x:y;
return t;
}
void main()
{
int a,b,c,m;
printf("please input three numbers:\n");
scanf("%d,%d,%d",&a,&b,&c);
m=max(max(a,b),c);
printf("the maximum of the three numbers is:%d\n",m);
}
温馨提示:答案为网友推荐,仅供参考