calculateRectangleArea method

double calculateRectangleArea(
  1. double length,
  2. double width
)

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;
}