/**
 * Given two lists of numbers, find the intersection of the two lists
 * by using a for loop and the continue statement.
 *
 * @param numbers1 The first list of numbers.
 * @param numbers2 The second list of numbers.
 * @return A list of numbers that are common to both input lists.
 */
fun intersectionForLoopContinue(numbers1: List<Int>, numbers2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()

    for (num1 in numbers1) {
        for (num2 in numbers2) {
            if (num1 == num2) {
                intersection.add(num1)
                continue
            }
        }
    }
    return intersection
}
/**
 * Given two lists of numbers, find the intersection of the two lists
 * by using a for loop and the continue statement.
 *
 * @param numbers1 The first list of numbers.
 * @param numbers2 The second list of numbers.
 * @return A list of numbers that are common to both input lists.
 */
fun intersectionForLoopContinue(numbers1: List<Int>, numbers2: List<Int>): List<Int> {
/**
 * Given two lists of numbers, find the intersection of the two lists
 * by using a for loop and the continue statement.
 *
 * @param numbers1 The first list of numbers.
 * @param numbers2 The second list of numbers.
 * @return A list of numbers that are common to both input lists.
 */
fun intersectionForLoopContinue(numbers1: List<Int>, numbers2: List<Int>): List<Int> {

    val intersection = mutableListOf<Int>()

    for (num1 in numbers1) {
        for (num2 in numbers2) {
            if (num1 == num2) {
                intersection.add(num1)
                continue
            }
        }
    }
    return intersection
}