xhtml
 

Hint 1

The area of an end wall can be calculated by adding another variable and initialising it like this:

int endWall = width * height;

This line must go after the ones that define width and height, and before the println line.


Back