// Listing 5.1 - demonstrates the use of function prototypes #include int Area(int length, int width); //function prototype int main() { using std::cout; using std::cin; int lengthOfYard; int widthOfYard; int areaOfYard; cout << "\nHow wide is your yard? "; cin >> widthOfYard; cout << "\nHow long is your yard? "; cin >> lengthOfYard; areaOfYard= Area(lengthOfYard, widthOfYard); cout << "\nYour yard is "; cout << areaOfYard; cout << " square feet\n\n"; system("PAUSE"); // prevent the console window from closing return 0; } int Area(int len, int wid) { return len * wid; }