#include<stdio.h>
int main()
{
int a,b,c,d,sum;
double average;
scanf("%d %d %d %d",&a,&b,&c,&d);
sum=a+b+c+d;
average=sum*1.0/4;
printf("Sum = %d; Average = %.1lf",sum,average);//%m.nlf n为小数点后的位数
return 0;
}
01-31
3163
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)