Answer:
#include <stdio.h>
double PyramidVolume(double baseLength, double baseWidth, double pyramidHeight){
return (baseLength * baseWidth * pyramidHeight) / 3;
}
int main(void) {
printf("Volume for 1.0, 1.0, 1.0 is: %.2f\n", PyramidVolume(1.0, 1.0, 1.0) );
return 0;
}
Explanation: