// rect.cpp // calculate the area of a rectangle with fixed dimensions #include using namespace std; int main() { int base; //the base of the rectangle int height; //the height of the rectangle int area; //the area of the rectangle //assign values to base and height base = 5; height = 10; //calculate the area area = base*height; //output the result cout << "The base is " << base << " and the height is " << height << endl; cout << "The area is " << area << endl; return 0; }