#include<iostream>
using namespace std;
// Declare boxVolume to compute the volume
// of a rectangular box
float boxVolume(float length, float width, float height);
int main() {
// Initialize variables
float length, width, height, volume;
// Receive input of box dimensions
cout << "Enter length: ";
cin >> length;
cout << "Enter width: ";
cin >> width;
cout << "Enter height: ";
cin >> height;
// Call function to compute box volume
volume=boxVolume(length,width,height);
// Report box volume
cout << "The box volume is " << volume << endl;
return 0;
}
// Define boxVolume to compute the volume of a
// rectangular box
float boxVolume(float length, float width, float height)
{
float volume=length*width*height;
return volume;
}