#include
main()
{
int a,b,c,max,min;
float sum,d,e;
printf("请输入三个数:");
scanf("%d%d%d",&a,&b,&c);
sum=a+b+c;
d=sum/3;
e=a*b*c;
if(a>b)
{
b=min;
a=max;
if(min>c)
min=c;
if(max
}
else
{
a=min;
b=max;
if(min>c)
min=c;
if(max
}
printf("三个数的和%.1f\n",sum);
printf("三个数的平均值%.2f\n",d);
printf("三个数的积%.1f\n",e);
printf("三个数中最大值是%d\n",max);
printf("三个数中最小值是%d\n",min);
}
floa a,b,c
sanf("f%f%f&a,&b,&c):
sum=a+b+c;
avg=a+b+c/3;
chengji=a*b*c;
printf("f%f%f%",sum,avg,chengji);
大概就这样