int area(int width, int height) {
    return width * height;
}

void main() {
    int room = area(12, 10);
    IO.println("The room is " + room + " square feet.");
    IO.println("Two rooms would be " + (area(12, 10) * 2) + " square feet.");
}

// From Groundwork, chapter 6 (ch06-methods), box 5.
// This example is from Groundwork, licensed CC BY-NC-SA 4.0.
// Run with: java ch06_05.java
