#include<iostream>
using namespace std;
// Declare volume to compute the volume
// of a rectangular box
float volume(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
boxVolume=volume(length,width,height);
// Report box volume
cout << "The box volume is " << boxVolume << endl;
return 0;
}
// Define volume to compute the volume of a
// rectangular box
float volume(float length, float width, float height)
{
float output=length*width*height;
return output;
}