/**
 * This exercise requires you to find the intersection of nested logical operators within a given range.
 * The range is indicated by the start and stop parameters, and you need to determine the numbers that satisfy
 * the given conditions. The logical operations are nested, making the exercise more challenging.
 */
fun intersectionOfNestedOperators(start: Int, stop: Int): List<Int> {

    val result = mutableListOf<Int>()

    for (num in start..stop) {
        // Condition 1: The number must be greater than 100
        if (num > 100) {
            // Condition 2: The number must be divisible by 5
            if (num % 5 == 0) {
                // Condition 3: The number must not be divisible by 3
                if (num % 3 != 0) {
                    // Condition 4: The number must be less than 1000 or greater than 2000
                    if (num < 1000 || num > 2000) {
                        result.add(num)
                    }
                }
            }
        }
    }

    return result
}
/**
 * This exercise requires you to find the intersection of nested logical operators within a given range.
 * The range is indicated by the start and stop parameters, and you need to determine the numbers that satisfy
 * the given conditions. The logical operations are nested, making the exercise more challenging.
 */
fun intersectionOfNestedOperators(start: Int, stop: Int): List<Int> {
/**
 * This exercise requires you to find the intersection of nested logical operators within a given range.
 * The range is indicated by the start and stop parameters, and you need to determine the numbers that satisfy
 * the given conditions. The logical operations are nested, making the exercise more challenging.
 */
fun intersectionOfNestedOperators(start: Int, stop: Int): List<Int> {

    val result = mutableListOf<Int>()

    for (num in start..stop) {
        // Condition 1: The number must be greater than 100
        if (num > 100) {
            // Condition 2: The number must be divisible by 5
            if (num % 5 == 0) {
                // Condition 3: The number must not be divisible by 3
                if (num % 3 != 0) {
                    // Condition 4: The number must be less than 1000 or greater than 2000
                    if (num < 1000 || num > 2000) {
                        result.add(num)
                    }
                }
            }
        }
    }

    return result
}