static double CalculateArea(double length, double width)
static void Main(string[] args)
Console.Write("Please enter the length of the rectangle: ");
double length = double.Parse(Console.ReadLine());
Console.Write("Please enter the width of the rectangle: ");
double width = double.Parse(Console.ReadLine());
double area = CalculateArea(length, width);
Console.WriteLine($"The area of the rectangle is: {area}");