Output each floating-point value with two digits after the decimal point, which can be achieved as follows:

printf("%0.2lf", yourValue);

Prompt the user to input a wall's height and width. Calculate and output the wall's area.

Respuesta :

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