求三个整数的平均值.c 145 B

123456789101112
  1. #include <stdio.h>
  2. int main() {
  3. int a,b,c;
  4. scanf("%d %d %d",&a,&b,&c);
  5. float output = (a+b+c)/3.0;
  6. printf("%.3f",output);
  7. return 0;
  8. }