输出三个数的和,乘积,平均值

#include<stdio.h>
int main()
{
int a,b,c,sum,dex;
float ave;
scanf("%d %d %d",&a,&b,&c);
sum=a+b+c;
dex=a*b*c;
ave=sum/3.0;
printf("%d %d %.2f\n",sum,dex,ave);
return 0;
}

猜你喜欢

转载自blog.csdn.net/weixin_44405429/article/details/86583981