fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. float a,b,c,d;
  5. printf("enter any three numbers");
  6. scanf("%f",&a);
  7. scanf("%f",&b);
  8. scanf("%f",&c);
  9. d=(a+b+c)/3;
  10. printf("the average = %0.4f",d);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 4528KB
stdin
Standard input is empty
stdout
enter any three numbersthe average = -0.0000