/**
 * This exercise aims to find all the numbers within a given range that are divisible by a specified divisor.
 * The function takes three arguments: start (the starting number of the range), end (the ending number of the range),
 * and divisor (the number to be divided by), and returns a list of all the divisible numbers within the range.
 */
fun findDivisibleNumbers(start: Int, end: Int, divisor: Int): List<Int> {

    val divisibleNumbers = mutableListOf<Int>()
    var currentNumber = start

    while (currentNumber <= end) {
        if (currentNumber % divisor == 0) {
            divisibleNumbers.add(currentNumber)
        }
        currentNumber++
    }

    return divisibleNumbers
}
/**
 * This exercise aims to find all the numbers within a given range that are divisible by a specified divisor.
 * The function takes three arguments: start (the starting number of the range), end (the ending number of the range),
 * and divisor (the number to be divided by), and returns a list of all the divisible numbers within the range.
 */
fun findDivisibleNumbers(start: Int, end: Int, divisor: Int): List<Int> {
/**
 * This exercise aims to find all the numbers within a given range that are divisible by a specified divisor.
 * The function takes three arguments: start (the starting number of the range), end (the ending number of the range),
 * and divisor (the number to be divided by), and returns a list of all the divisible numbers within the range.
 */
fun findDivisibleNumbers(start: Int, end: Int, divisor: Int): List<Int> {

    val divisibleNumbers = mutableListOf<Int>()
    var currentNumber = start

    while (currentNumber <= end) {
        if (currentNumber % divisor == 0) {
            divisibleNumbers.add(currentNumber)
        }
        currentNumber++
    }

    return divisibleNumbers
}