#include<stdio.h>
int main()
{
int a,b,c,d,Sum;
double Average;
scanf("%d%d%d%d",&a,&b,&c,&d);
printf("Sum = %d; Average = %.1f\n",a+b+c+d,(a+b+c+d)/4.0);
}
求整数均值 (10分)
最新推荐文章于 2023-01-30 10:51:39 发布
#include<stdio.h>
int main()
{
int a,b,c,d,Sum;
double Average;
scanf("%d%d%d%d",&a,&b,&c,&d);
printf("Sum = %d; Average = %.1f\n",a+b+c+d,(a+b+c+d)/4.0);
}