fork download
  1. #include<stdio.h>
  2. int main ( void)
  3. {
  4. int x,y,z,s,av;
  5. x=2;
  6. y=4;
  7. z=6;
  8. s=x+y+z;
  9. av=s/3;
  10. printf("Average of three numbers%f",av);
  11. return 0;
  12. }
Success #stdin #stdout 0s 4180KB
stdin
Standard input is empty
stdout
Average of three numbers0.000000