#include using namespace std; int main() { double length {0.0}; double width {0.0}; // Input length and width of the rectangle cout << "Enter the length of the rectangle: "; cin >> length; cout << "Enter the width of the rectangle: "; cin >> width; // Calculate area and perimeter double area {length * width}; double perimeter {2 * (length + width)}; // Output the results cout << "Area of the rectangle: " << area << endl; cout << "Perimeter of the rectangle: " << perimeter << endl; return EXIT_SUCCESS; }