/**
 * This function takes a list of floating-point numbers and a threshold value, and returns a new list
 * containing only the numbers greater than the threshold.
 *
 * @param numbers a list of floating-point numbers
 * @param threshold a floating-point number
 * @return a list of numbers greater than the threshold
 *
 * Example:
 * findGreaterThan(listOf(1.05, -2.1, 3.45, -4.8, 5.2), 2) returns [3.45, 5.2]
 */
fun findGreaterThan(numbers: List<Double>, threshold: Double): List<Double> {

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

    for (num in numbers) {
        if (num > threshold) {
            result.add(num) // Append the number to the result list if it's greater than the threshold
        }
    }

    return result
}
/**
 * This function takes a list of floating-point numbers and a threshold value, and returns a new list
 * containing only the numbers greater than the threshold.
 *
 * @param numbers a list of floating-point numbers
 * @param threshold a floating-point number
 * @return a list of numbers greater than the threshold
 *
 * Example:
 * findGreaterThan(listOf(1.05, -2.1, 3.45, -4.8, 5.2), 2) returns [3.45, 5.2]
 */
fun findGreaterThan(numbers: List<Double>, threshold: Double): List<Double> {
/**
 * This function takes a list of floating-point numbers and a threshold value, and returns a new list
 * containing only the numbers greater than the threshold.
 *
 * @param numbers a list of floating-point numbers
 * @param threshold a floating-point number
 * @return a list of numbers greater than the threshold
 *
 * Example:
 * findGreaterThan(listOf(1.05, -2.1, 3.45, -4.8, 5.2), 2) returns [3.45, 5.2]
 */
fun findGreaterThan(numbers: List<Double>, threshold: Double): List<Double> {

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

    for (num in numbers) {
        if (num > threshold) {
            result.add(num) // Append the number to the result list if it's greater than the threshold
        }
    }

    return result
}