#include using namespace std; int main () { int Length, // the length of the rectangle Width, // the width of the rectangle A, P; cout << "Enter the length of a rectangle (as an integer) "; cin >> Length; cout << "You entered " << Length << " as the length" << endl; cout << "Enter the width of a rectangle (as an integer) "; cin >> Width; cout << "You entered " << Width << " as the width" << endl; // calculation section // A = L*W and P=2L+2W A = Length * Width; P = 2*Length + 2 * Width; // output section cout << "The Area is " << A << endl; cout << "The Perimeter is " << P << endl; return 0; }