/**
 * This exercise requires you to find the intersection of modulus and basic loop syntax.
 * You need to write a function that takes in two numbers as arguments and returns a list
 * of all the numbers between those two numbers (inclusive) that are divisible by both
 * three and four (i.e., the remainder of division by three and four is zero).
 */
fun modulusLoop(num1: Int, num2: Int): List<Int> {

    val result = mutableListOf<Int>()
    
    // Iterate through all numbers between num1 and num2 (inclusive)
    for (i in num1..num2) {
        // Check if the number is divisible by both three and four
        if (i % 3 == 0 && i % 4 == 0) {
            // Append the number to the result list
            result.add(i)
        }
    }
    
    return result
}

// Example usage:
/**
 * This exercise requires you to find the intersection of modulus and basic loop syntax.
 * You need to write a function that takes in two numbers as arguments and returns a list
 * of all the numbers between those two numbers (inclusive) that are divisible by both
 * three and four (i.e., the remainder of division by three and four is zero).
 */
fun modulusLoop(num1: Int, num2: Int): List<Int> {
/**
 * This exercise requires you to find the intersection of modulus and basic loop syntax.
 * You need to write a function that takes in two numbers as arguments and returns a list
 * of all the numbers between those two numbers (inclusive) that are divisible by both
 * three and four (i.e., the remainder of division by three and four is zero).
 */
fun modulusLoop(num1: Int, num2: Int): List<Int> {

    val result = mutableListOf<Int>()
    
    // Iterate through all numbers between num1 and num2 (inclusive)
    for (i in num1..num2) {
        // Check if the number is divisible by both three and four
        if (i % 3 == 0 && i % 4 == 0) {
            // Append the number to the result list
            result.add(i)
        }
    }
    
    return result
}

// Example usage: