/**
 * A carpenter needs to calculate the number of boards needed to cover a desired length.
 * The function takes in the width of each board and the desired total length.
 * It returns the minimum number of boards required for the given length.
 */
fun calculateBoardLength(boardWidth: Int, desiredLength: Int): Int {

    var totalLength = 0  // Variable to track the accumulated length of boards
    var boardCount = 0  // Variable to count the number of boards used

    while (totalLength < desiredLength) {
        totalLength += boardWidth  // Add the width of each board to totalLength
        boardCount++  // Increment boardCount for every board used
    }

    return boardCount
}
/**
 * A carpenter needs to calculate the number of boards needed to cover a desired length.
 * The function takes in the width of each board and the desired total length.
 * It returns the minimum number of boards required for the given length.
 */
fun calculateBoardLength(boardWidth: Int, desiredLength: Int): Int {
/**
 * A carpenter needs to calculate the number of boards needed to cover a desired length.
 * The function takes in the width of each board and the desired total length.
 * It returns the minimum number of boards required for the given length.
 */
fun calculateBoardLength(boardWidth: Int, desiredLength: Int): Int {

    var totalLength = 0  // Variable to track the accumulated length of boards
    var boardCount = 0  // Variable to count the number of boards used

    while (totalLength < desiredLength) {
        totalLength += boardWidth  // Add the width of each board to totalLength
        boardCount++  // Increment boardCount for every board used
    }

    return boardCount
}