/************************************************************************ * * * Program: RectangleArea.cpp * * * * Author: Robb T. Koether * * * * Date: Sep 9, 2003 * * * * Purpose: This program will read the length and width of a * * rectangle and print the area * * * ************************************************************************/ // Header files #include #include using namespace std; /************************************************************************ * * * Function: main * * * * Purpose: To find the area of a rectangle * * * ************************************************************************/ int main() { // Get the length and width from the user cout << "Enter the length: "; int length; cin >> length; cout << "Enter the width: "; int width; cin >> width; // Find the area float area = length * width; // Print the result cout << "The area is " << area << endl; return 0; }