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