Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #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
- }
Advertisement