calculateRectangleArea method
To calculate the area of a rectangle, you can use the following formula:
Area=Length×Width
Where:
"Length" represents the length of the rectangle.
"Width" represents the width of the rectangle.
Implementation
double calculateRectangleArea(double length, double width) {
return length * width;
}