fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int a,b,c;
  5. float avg;
  6. scanf("%d%d%d",&a,&b,&c);
  7. avg=(a+b+c)/3.0;
  8. printf("平均值是:%.2f\n",avg);
  9. return 0;
  10. }
  11.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
平均值是:351384864.00