beyondgrader.com Logo
DemoBrowseAboutTeamLogin

Area Calculation

Geoffrey Challen // 2020.6.0

Computers can do basic math, quickly and with near-perfect accuracy. This is one of the many things that makes them so useful.

Your friend wrote a simple function intended to save the area of a room in a variable called area given its width and height stored in int variables width and height. Unfortunately, their code has a small error. Go ahead and fix it for them! (Note that you do not need to declare or modify width and height. But you should declare and set area.)