Hogy-Bear

Q1

Feb 8th, 2018
256
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.32 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. double pyVolCalculator(double i, double j); //prototype
  4.  
  5. int main(int argc, char const *argv[]) {
  6.  
  7.   printf("%g\n", pyVolCalculator(2.0, 5.0));
  8.  
  9.   return 0;
  10. }
  11.  
  12. double pyVolCalculator(double i, double j){ //
  13.   double answer = ( (i * i) * (j / 3) ); //formula
  14.   return answer; //return the answer
  15. }
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment