/**
 * A carpenter needs to calculate the length of each board needed for a project.
 * The width and length of the board are given, along with the number of pieces needed.
 * The function should calculate the total length required and return it.
 */
fun calculateBoardLength(width: Int, length: Int, pieces: Int): Int {

    var boardLength = 0
    if (width > 0 && length > 0 && pieces > 0) {
        boardLength = width * length * pieces
    }
    return boardLength
}
/**
 * A carpenter needs to calculate the length of each board needed for a project.
 * The width and length of the board are given, along with the number of pieces needed.
 * The function should calculate the total length required and return it.
 */
fun calculateBoardLength(width: Int, length: Int, pieces: Int): Int {
/**
 * A carpenter needs to calculate the length of each board needed for a project.
 * The width and length of the board are given, along with the number of pieces needed.
 * The function should calculate the total length required and return it.
 */
fun calculateBoardLength(width: Int, length: Int, pieces: Int): Int {

    var boardLength = 0
    if (width > 0 && length > 0 && pieces > 0) {
        boardLength = width * length * pieces
    }
    return boardLength
}