/**
 * Takes a list of numbers and a threshold value as input.
 * Appends the numbers from the list that are greater than the threshold to a new list.
 * Returns the new list.
 */
fun appendNumbersGreaterThan(inputList: List<Int>, threshold: Int): List<Int> {

    // Initialize an empty list to store the numbers greater than the threshold
    val outputList = mutableListOf<Int>()

    // Iterate over each number in the input list
    for (num in inputList) {
        // Check if the number is greater than the threshold
        if (num > threshold) {
            // Add the number to the output list
            outputList.add(num)
        }
    }

    // Return the list of numbers greater than the threshold
    return outputList
}
/**
 * Takes a list of numbers and a threshold value as input.
 * Appends the numbers from the list that are greater than the threshold to a new list.
 * Returns the new list.
 */
fun appendNumbersGreaterThan(inputList: List<Int>, threshold: Int): List<Int> {
/**
 * Takes a list of numbers and a threshold value as input.
 * Appends the numbers from the list that are greater than the threshold to a new list.
 * Returns the new list.
 */
fun appendNumbersGreaterThan(inputList: List<Int>, threshold: Int): List<Int> {

    // Initialize an empty list to store the numbers greater than the threshold
    val outputList = mutableListOf<Int>()

    // Iterate over each number in the input list
    for (num in inputList) {
        // Check if the number is greater than the threshold
        if (num > threshold) {
            // Add the number to the output list
            outputList.add(num)
        }
    }

    // Return the list of numbers greater than the threshold
    return outputList
}