#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;
}
输出三个数的和,乘积,平均值
最新推荐文章于 2023-04-02 09:24:10 发布
#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;
}