if (choice == 1)
{
// Get the length of the rectangle
cout << "Please enter the length of a rectangle: ";
cin >> rectangleLength;
while (!(rectangleLength > 0))
{
cout << "Please select a positive number: ";
cin >> rectangleLength;
}
// Get the width of the rectangle
cout << "Please enter the width of a rectangle: ";
cin >> rectangleWidth;
while (!(rectangleWidth > 0))
{
cout << "Please select a positive number: ";
cin >> rectangleWidth;
}
// Display the area of the rectangle
area(rectangleLength, rectangleWidth);
}