/**
 * This function takes the name of an architect, a start range value, an end range value, and a target number as input.
 * It is used to find all values within the inclusive range that are divisible by the target number.
 * The function returns a list of all such values found.
 * Use the ternary operator and multiple conditions to solve this exercise.
 *
 * @param architectName A string representing the name of the architect.
 * @param startRange An integer representing the start of the inclusive range.
 * @param endRange An integer representing the end of the inclusive range.
 * @param targetNumber An integer representing the number to check divisibility.
 * @return A list of integers containing all numbers within the inclusive range divisible by the target number.
 */
fun findInclusiveRange(architectName: String, startRange: Int, endRange: Int, targetNumber: Int): List<Int> {

    val result = mutableListOf<Int>()

    for (num in startRange..endRange) {
        val isDivisible = if (num % targetNumber == 0) true else false
        if (isDivisible) {
            result.add(num)
        }
    }

    return result
}
/**
 * This function takes the name of an architect, a start range value, an end range value, and a target number as input.
 * It is used to find all values within the inclusive range that are divisible by the target number.
 * The function returns a list of all such values found.
 * Use the ternary operator and multiple conditions to solve this exercise.
 *
 * @param architectName A string representing the name of the architect.
 * @param startRange An integer representing the start of the inclusive range.
 * @param endRange An integer representing the end of the inclusive range.
 * @param targetNumber An integer representing the number to check divisibility.
 * @return A list of integers containing all numbers within the inclusive range divisible by the target number.
 */
fun findInclusiveRange(architectName: String, startRange: Int, endRange: Int, targetNumber: Int): List<Int> {
/**
 * This function takes the name of an architect, a start range value, an end range value, and a target number as input.
 * It is used to find all values within the inclusive range that are divisible by the target number.
 * The function returns a list of all such values found.
 * Use the ternary operator and multiple conditions to solve this exercise.
 *
 * @param architectName A string representing the name of the architect.
 * @param startRange An integer representing the start of the inclusive range.
 * @param endRange An integer representing the end of the inclusive range.
 * @param targetNumber An integer representing the number to check divisibility.
 * @return A list of integers containing all numbers within the inclusive range divisible by the target number.
 */
fun findInclusiveRange(architectName: String, startRange: Int, endRange: Int, targetNumber: Int): List<Int> {

    val result = mutableListOf<Int>()

    for (num in startRange..endRange) {
        val isDivisible = if (num % targetNumber == 0) true else false
        if (isDivisible) {
            result.add(num)
        }
    }

    return result
}