#include<stdio.h>
int main()
{
int Sum, a, b, c, d;
double Average;
scanf("%d %d %d %d",&a,&b,&c,&d);
Sum=a+b+c+d;
Average=(a+b+c+d)/4.0;
printf("Sum = %d; Average = %.1f", Sum, Average);
return 0;
}
标签:int,Average,均值,整数,习题,Sum From: https://www.cnblogs.com/ytmsnzy/p/16587864.html