/**
 * A carpenter needs to calculate the required number of planks for a given length and width of a surface.
 * The length and width of the surface is given in inches and the length of each plank is also given in inches.
 *
 * @param length The length of the surface.
 * @param width The width of the surface.
 * @param plankLength The length of each individual plank.
 * @return The minimum number of planks required to cover the entire surface.
 */
fun calculateRequiredBoards(length: Int, width: Int, plankLength: Int): Int {

    var totalLength = length * width
    var totalPlanks = 0

    // Loop until the entire surface is covered
    while (totalLength > 0) {
        if (totalLength >= plankLength) {
            totalLength -= plankLength
        } else {
            totalLength = 0
        }
        totalPlanks++
    }

    return totalPlanks
}
/**
 * A carpenter needs to calculate the required number of planks for a given length and width of a surface.
 * The length and width of the surface is given in inches and the length of each plank is also given in inches.
 *
 * @param length The length of the surface.
 * @param width The width of the surface.
 * @param plankLength The length of each individual plank.
 * @return The minimum number of planks required to cover the entire surface.
 */
fun calculateRequiredBoards(length: Int, width: Int, plankLength: Int): Int {
/**
 * A carpenter needs to calculate the required number of planks for a given length and width of a surface.
 * The length and width of the surface is given in inches and the length of each plank is also given in inches.
 *
 * @param length The length of the surface.
 * @param width The width of the surface.
 * @param plankLength The length of each individual plank.
 * @return The minimum number of planks required to cover the entire surface.
 */
fun calculateRequiredBoards(length: Int, width: Int, plankLength: Int): Int {

    var totalLength = length * width
    var totalPlanks = 0

    // Loop until the entire surface is covered
    while (totalLength > 0) {
        if (totalLength >= plankLength) {
            totalLength -= plankLength
        } else {
            totalLength = 0
        }
        totalPlanks++
    }

    return totalPlanks
}