Write a program that reads the length and width of a rectangle and prints its area.

#include <stdio.h>

int main() {
float length, width, area;

// Reading length and width of the rectangle
printf(“Enter the length and width of the rectangle: “);
scanf(“%f %f”, &length, &width);

// Calculating area
area = length * width;

// Printing the area
printf(“Area of the rectangle: %.2f\n”, area);

return 0;
}