So I'm trying to display the Volume of a Porcelain wash with C++ using Length, Width, Height, and Radius imputed from the user. I'm using Pi as a Variable as I'm instructed to not use stuff that hasn't been done in class.
#include <iostream>
#include <math.h>
using namespace std;
cout<<"The Volume of the Basin box minus the hemisphere is = " <<Vol <<endl;
return 0;
}
When I run this with debugging, I test it out with basic numbers. No mater what numbers I use it only gives me the calculation of the first part and ignores the second part. Does anyone have any ideas?