Answer:
#include <stdio.h>
int main()
{
double height, width, area;
printf("Enter height and width of the wall: ");
scanf("%lf%lf", &height, &width);
area = height * width;
printf("%0.2lf", area);
return 0;
}
Explanation:
- Declare variables for height, width, and area
- Get user inputs from the user
- Calculate the area by multiplying height and width
- Print the area in requested format