public static void Main(string[] args)
Console.WriteLine("Enter the length of the rectangle:");
double length = double.Parse(Console.ReadLine());
Console.WriteLine("Enter the width of the rectangle:");
double width = double.Parse(Console.ReadLine());
double perimeter = 2 * (length + width);
double area = length * width;
for (int i = 0; i < width; i++)
for (int j = 0; j < length; j++)
Console.WriteLine("The perimeter of the rectangle is: " + perimeter);
Console.WriteLine("The area of the rectangle is: " + area);