/**
 * This exercise requires the marketing manager to implement set operations with a condition for greater than.
 * The task is to find the elements that exist in set1 but not in set2 and are greater than a given number.
 *
 * @param set1 The first set of elements.
 * @param set2 The second set of elements.
 * @return A new set containing the elements that satisfy the condition.
 */
fun setOperationsGreaterThan(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    // Prompt the user to enter a number
    print("Enter a number: ")
    val number = readLine()?.toInt() ?: 0

    // Initialize an empty set to store the result
    val resultSet = mutableSetOf<Int>()

    // Iterate over the elements in set1
    for (element1 in set1) {
        // Check if the element is greater than the number and not present in set2
        if (element1 > number && element1 !in set2) {
            // Add the element to the result set
            resultSet.add(element1)
        }
    }

    return resultSet
}

// Example usage
val set1 = setOf(1, 2, 3, 4, 5, 6)
val set2 = setOf(3)
/**
 * This exercise requires the marketing manager to implement set operations with a condition for greater than.
 * The task is to find the elements that exist in set1 but not in set2 and are greater than a given number.
 *
 * @param set1 The first set of elements.
 * @param set2 The second set of elements.
 * @return A new set containing the elements that satisfy the condition.
 */
fun setOperationsGreaterThan(set1: Set<Int>, set2: Set<Int>): Set<Int> {
/**
 * This exercise requires the marketing manager to implement set operations with a condition for greater than.
 * The task is to find the elements that exist in set1 but not in set2 and are greater than a given number.
 *
 * @param set1 The first set of elements.
 * @param set2 The second set of elements.
 * @return A new set containing the elements that satisfy the condition.
 */
fun setOperationsGreaterThan(set1: Set<Int>, set2: Set<Int>): Set<Int> {

    // Prompt the user to enter a number
    print("Enter a number: ")
    val number = readLine()?.toInt() ?: 0

    // Initialize an empty set to store the result
    val resultSet = mutableSetOf<Int>()

    // Iterate over the elements in set1
    for (element1 in set1) {
        // Check if the element is greater than the number and not present in set2
        if (element1 > number && element1 !in set2) {
            // Add the element to the result set
            resultSet.add(element1)
        }
    }

    return resultSet
}

// Example usage
val set1 = setOf(1, 2, 3, 4, 5, 6)
val set2 = setOf(3)