c0101.c 222 B

123456789101112131415
  1. #include <stdio.h>
  2. int main() {
  3. int x, y, z;
  4. scanf("%d %d %d", &x, &y, &z);
  5. int sum = x + y + z;
  6. float average = (float)sum / 3;
  7. printf("%d\n", sum);
  8. printf("%.2f\n", average);
  9. return 0;
  10. }