/**
 * This function multiplies each element in the given set by a specified number of times.
 * It then loops through the modified set and prints each value.
 *
 * @param numbersSet A set of numbers
 * @param times The number of times to multiply each element
 */
fun multiplyAndLoop(numbersSet: Set<Int>, times: Int) {

    val modifiedSet = mutableSetOf<Int>()

    for (number in numbersSet) {
        modifiedSet.add(number * times)
    }

    for (value in modifiedSet) {
        println(value)
    }

    // Note: The code can also be simplified to a one-liner using set comprehension:
    // numbersSet.map { it * times }.forEach { println(it) }
}

// Example usage
/**
 * This function multiplies each element in the given set by a specified number of times.
 * It then loops through the modified set and prints each value.
 *
 * @param numbersSet A set of numbers
 * @param times The number of times to multiply each element
 */
fun multiplyAndLoop(numbersSet: Set<Int>, times: Int) {
/**
 * This function multiplies each element in the given set by a specified number of times.
 * It then loops through the modified set and prints each value.
 *
 * @param numbersSet A set of numbers
 * @param times The number of times to multiply each element
 */
fun multiplyAndLoop(numbersSet: Set<Int>, times: Int) {

    val modifiedSet = mutableSetOf<Int>()

    for (number in numbersSet) {
        modifiedSet.add(number * times)
    }

    for (value in modifiedSet) {
        println(value)
    }

    // Note: The code can also be simplified to a one-liner using set comprehension:
    // numbersSet.map { it * times }.forEach { println(it) }
}

// Example usage