/**
 * Create a range of numbers within the given start and stop parameters, and return a list of those numbers that are divisible by the given divisor.
 *
 * @param start The starting value of the range (inclusive).
 * @param stop The ending value of the range (exclusive).
 * @param divisor The number used to check divisibility.
 * @return A list of numbers within the range that are divisible by the divisor.
 */
fun createRange(start: Int, stop: Int, divisor: Int): List<Int> {

    val result = mutableListOf<Int>()

    // Iterate through the range from start to stop
    for (num in start until stop) {
        // Check if the number is divisible by the divisor
        if (num % divisor == 0) {
            result.add(num)
        }
    }

    return result
}
/**
 * Create a range of numbers within the given start and stop parameters, and return a list of those numbers that are divisible by the given divisor.
 *
 * @param start The starting value of the range (inclusive).
 * @param stop The ending value of the range (exclusive).
 * @param divisor The number used to check divisibility.
 * @return A list of numbers within the range that are divisible by the divisor.
 */
fun createRange(start: Int, stop: Int, divisor: Int): List<Int> {
/**
 * Create a range of numbers within the given start and stop parameters, and return a list of those numbers that are divisible by the given divisor.
 *
 * @param start The starting value of the range (inclusive).
 * @param stop The ending value of the range (exclusive).
 * @param divisor The number used to check divisibility.
 * @return A list of numbers within the range that are divisible by the divisor.
 */
fun createRange(start: Int, stop: Int, divisor: Int): List<Int> {

    val result = mutableListOf<Int>()

    // Iterate through the range from start to stop
    for (num in start until stop) {
        // Check if the number is divisible by the divisor
        if (num % divisor == 0) {
            result.add(num)
        }
    }

    return result
}