#include <iostream>
usingnamespace std;
int main()
double area, length= 0.0, width= 0.0, area= 0.0;
{
getInput(length, width);
area = getArea(length, width);
displayData(length, width, area);
return 0;
}
void getInput (double length, double width)
{
cout << "Please enter the length and the width of the rectangle. " << endl;
}
double getArea (double length, double width)
{
area = length * width;
return area;
}
void displayData (double area)
{
cout << "The length of the rectangle is " << length << endl;
cout << "The width of the rectangle is " << width << endl;
cout << "The area of the rectangle is " << getArea() << endl;
}