#include
using namespace std;
double box(double length, double width, double height); // use double data
int main()
{
double answer;
answer = box(10.1, 11.2, 3.3); // assign return value
cout << "The volume is " << answer;
return 0;
}
// This version of box uses double data.
double box(double length, double width, double height)
{
return length * width * height ;
}
The volume is 373.296