/**
 * This function calculates the total floor area of a building given the number of floors and the
 * number of rooms per floor.
 *
 * @param totalFloors The total number of floors in the building.
 * @param roomsPerFloor The number of rooms per floor.
 * @return The total floor area of the building.
 */
fun calculateFloorArea(totalFloors: Int, roomsPerFloor: Int): Int {

    var totalArea = 0

    for (floor in 1..totalFloors) {
        for (room in 1..roomsPerFloor) {
            // Calculate the area of each rectangular room (length = 5m, width = 4m)
            val roomArea = 5 * 4

            // Add the room area to the total floor area
            totalArea += roomArea
        }
    }

    return totalArea
}
/**
 * This function calculates the total floor area of a building given the number of floors and the
 * number of rooms per floor.
 *
 * @param totalFloors The total number of floors in the building.
 * @param roomsPerFloor The number of rooms per floor.
 * @return The total floor area of the building.
 */
fun calculateFloorArea(totalFloors: Int, roomsPerFloor: Int): Int {
/**
 * This function calculates the total floor area of a building given the number of floors and the
 * number of rooms per floor.
 *
 * @param totalFloors The total number of floors in the building.
 * @param roomsPerFloor The number of rooms per floor.
 * @return The total floor area of the building.
 */
fun calculateFloorArea(totalFloors: Int, roomsPerFloor: Int): Int {

    var totalArea = 0

    for (floor in 1..totalFloors) {
        for (room in 1..roomsPerFloor) {
            // Calculate the area of each rectangular room (length = 5m, width = 4m)
            val roomArea = 5 * 4

            // Add the room area to the total floor area
            totalArea += roomArea
        }
    }

    return totalArea
}