#include <stdio.h> int main() { int a,b,c,d; double A; scanf("%d%d%d%d",&a,&b,&c,&d); A=(double)((a+b+c+d)/4.0);//强转成double printf("Sum = %d\n",a+b+c+d); printf("Average = %.2lf",A); return 0;}
#include <stdio.h> int main() { int a,b,c,d; double A; scanf("%d%d%d%d",&a,&b,&c,&d); A=(double)((a+b+c+d)/4.0);//强转成double printf("Sum = %d\n",a+b+c+d); printf("Average = %.2lf",A); return 0;}