/**
 * This function takes two lists as input and prints the common elements present in both lists.
 */
fun printCommonElements(list1: List<Int>, list2: List<Int>) {

    val commonElements = mutableListOf<Int>()

    for (element in list1) {
        if (element in list2) {
            commonElements.add(element)
        }
    }

    println("The common elements are: $commonElements")
}
/**
 * This function takes two lists as input and prints the common elements present in both lists.
 */
fun printCommonElements(list1: List<Int>, list2: List<Int>) {
/**
 * This function takes two lists as input and prints the common elements present in both lists.
 */
fun printCommonElements(list1: List<Int>, list2: List<Int>) {

    val commonElements = mutableListOf<Int>()

    for (element in list1) {
        if (element in list2) {
            commonElements.add(element)
        }
    }

    println("The common elements are: $commonElements")
}