// Author: Keith Shomper // Date: 10/27/03 // Purpose: To demonstrate function calling by computing the area of a rectangle #include using namespace std; int main() { float length, width, area; // prompt for and get the length cout << "What is the length of the rectangle: "; cin >> length; // prompt for and get the width cout << "What is the width of the rectangle: "; cin >> width; // compute the area area = length * width; // output the result cout << "The area of the rectangle is " << area << endl; return 0; }