Each of the walls of a room with square dimensions has been built with two pieces of sheetrock, a smaller one and a larger one.  The length of all the smaller ones is the same and is stored in the variable small.  Similarly, the length of all the larger ones is the same and is stored in the variables large.  Write a single expression whose value is the total area of this room.  DO NOT use the pow function.

Each of the walls of a room with square dimensions has been built with two pieces of sheetrock, a smaller one and a larger one.  The length of all the smaller ones is the same and is stored in the variable small.  Similarly, the length of all the larger ones is the same and is stored in the variables large.  Write a single expression whose value is the total area of this room.  DO NOT use the pow function.

LANGUAGE: Visual Basic

CHALLENGE:

Each of the walls of a room with square dimensions has been built with two pieces of sheetrock, a smaller one and a larger one.  
The length of all the smaller ones is the same and is stored in the variable small.  
Similarly, the length of all the larger ones is the same and is stored in the variables large.  

Write a single expression whose value is the total area of this room.  DO NOT use the pow function.

SOLUTION:

(large + small)^2


Add comment