fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. // your code goes here
  5. double a,b,c,avg;
  6. a=1;
  7. b=2;
  8. c=3;
  9. avg=(a+b+c)/3;
  10. printf("average is %f",avg);
  11. return 0;
  12. }
  13.  
Success #stdin #stdout 0s 4344KB
stdin
Standard input is empty
stdout
average is 2.000000