/**
 * Given a range of numbers, this function finds all the numbers that satisfy a specific criteria and returns them.
 *
 * @param start The start of the range.
 * @param end The end of the range.
 * @return A list of numbers in the range (start to end) that satisfy the criteria.
 */
fun findNumbers(start: Int, end: Int): List<Int> {

    val numbers = mutableListOf<Int>()

    for (num in start..end) {
        if (checkDivisible(num)) {
            numbers.add(num)
        }
    }

    return numbers
}

fun checkDivisible(num: Int): Boolean {
    for (i in 2..10) {
        if (num % i == 0) {
            return true
        }
    }
    return false
}
/**
 * Given a range of numbers, this function finds all the numbers that satisfy a specific criteria and returns them.
 *
 * @param start The start of the range.
 * @param end The end of the range.
 * @return A list of numbers in the range (start to end) that satisfy the criteria.
 */
fun findNumbers(start: Int, end: Int): List<Int> {
/**
 * Given a range of numbers, this function finds all the numbers that satisfy a specific criteria and returns them.
 *
 * @param start The start of the range.
 * @param end The end of the range.
 * @return A list of numbers in the range (start to end) that satisfy the criteria.
 */
fun findNumbers(start: Int, end: Int): List<Int> {

    val numbers = mutableListOf<Int>()

    for (num in start..end) {
        if (checkDivisible(num)) {
            numbers.add(num)
        }
    }

    return numbers
}

fun checkDivisible(num: Int): Boolean {
    for (i in 2..10) {
        if (num % i == 0) {
            return true
        }
    }
    return false
}