Hogy-Bear icon

Q1

Hogy-Bear | PRO | 02/08/18 12:46:28 PM UTC | 0 ⭐ | 213 👁️ | Never ⏰ | []
C |

320 B

|

None

|

0 👍

/

0 👎

#include <stdio.h>
 
double pyVolCalculator(double i, double j); //prototype
 
int main(int argc, char const *argv[]) {
 
  printf("%g\n", pyVolCalculator(2.0, 5.0));
 
  return 0;
}
 
double pyVolCalculator(double i, double j){ //
  double answer = ( (i * i) * (j / 3) ); //formula
  return answer; //return the answer
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎