/**
 * This function takes in a tuple 't' and an integer 'n' as input arguments.
 * It loops through the tuple and breaks out of the loop when it encounters
 * an element that is divisible by 'n'. This exercise tests the knowledge of
 * loop control statements and tuple methods.
 */
fun breakOutOfLoop(t: List<Int>, n: Int) {

    // Iterate through each element in the tuple
    for (element in t) {
        // Check if the element is divisible by 'n'
        if (element % n == 0) {
            println("Found a divisible element! Breaking out of the loop...")
            // Break out of the loop
            break
        }
        // Print the current element (optional)
        println(element)
    }
}
/**
 * This function takes in a tuple 't' and an integer 'n' as input arguments.
 * It loops through the tuple and breaks out of the loop when it encounters
 * an element that is divisible by 'n'. This exercise tests the knowledge of
 * loop control statements and tuple methods.
 */
fun breakOutOfLoop(t: List<Int>, n: Int) {
/**
 * This function takes in a tuple 't' and an integer 'n' as input arguments.
 * It loops through the tuple and breaks out of the loop when it encounters
 * an element that is divisible by 'n'. This exercise tests the knowledge of
 * loop control statements and tuple methods.
 */
fun breakOutOfLoop(t: List<Int>, n: Int) {

    // Iterate through each element in the tuple
    for (element in t) {
        // Check if the element is divisible by 'n'
        if (element % n == 0) {
            println("Found a divisible element! Breaking out of the loop...")
            // Break out of the loop
            break
        }
        // Print the current element (optional)
        println(element)
    }
}