/**
 * In this exercise, you need to write a function that takes a set of numbers and a threshold as input.
 * Your task is to add all the elements from the given set that are greater than the threshold value to a new set,
 * and return this new set as the result.
 *
 * @param numbers A set of numbers (may contain duplicates).
 * @param threshold An integer representing the threshold value.
 * @return A set containing all the elements from the input set that are greater than the threshold value.
 */
fun addElementsGreaterThan(numbers: Set<Int>, threshold: Int): Set<Int> {

    // Initialize an empty set to store the elements greater than the threshold
    val greaterThanThreshold = mutableSetOf<Int>()

    // Loop through each number in the given set
    for (num in numbers) {
        // Add the number to the set if it is greater than the threshold
        if (num > threshold) {
            greaterThanThreshold.add(num)
        }
    }

    // Return the set containing the elements greater than the threshold
    return greaterThanThreshold
}
/**
 * In this exercise, you need to write a function that takes a set of numbers and a threshold as input.
 * Your task is to add all the elements from the given set that are greater than the threshold value to a new set,
 * and return this new set as the result.
 *
 * @param numbers A set of numbers (may contain duplicates).
 * @param threshold An integer representing the threshold value.
 * @return A set containing all the elements from the input set that are greater than the threshold value.
 */
fun addElementsGreaterThan(numbers: Set<Int>, threshold: Int): Set<Int> {
/**
 * In this exercise, you need to write a function that takes a set of numbers and a threshold as input.
 * Your task is to add all the elements from the given set that are greater than the threshold value to a new set,
 * and return this new set as the result.
 *
 * @param numbers A set of numbers (may contain duplicates).
 * @param threshold An integer representing the threshold value.
 * @return A set containing all the elements from the input set that are greater than the threshold value.
 */
fun addElementsGreaterThan(numbers: Set<Int>, threshold: Int): Set<Int> {

    // Initialize an empty set to store the elements greater than the threshold
    val greaterThanThreshold = mutableSetOf<Int>()

    // Loop through each number in the given set
    for (num in numbers) {
        // Add the number to the set if it is greater than the threshold
        if (num > threshold) {
            greaterThanThreshold.add(num)
        }
    }

    // Return the set containing the elements greater than the threshold
    return greaterThanThreshold
}