Create a class Rectangle with methods to calculate area and perimeter.
MediumProblem Statement
Create a class Rectangle with methods to calculate area and perimeter.
Sample Input
Length: 10, Width: 5
Sample Output
Area: 50 Perimeter: 30
Limits
Time: 2s · Memory: 256 MB