/**
 * This exercise focuses on creating a tuple and finding the numbers greater than or equal to a given target.
 *
 * Given a list of numbers, you need to create a tuple containing only the numbers that are greater than or equal to the target.
 * The function should return the tuple.
 *
 * @param numbers A list of integers.
 * @param target The target number to compare against.
 * @return A tuple containing only the numbers greater than or equal to the target.
 *
 * Example:
 * createTupleGreaterThanOrEqual(listOf(2, 7, 1, 9, 5, 3, 8), 5) => (7, 9, 5, 8)
 */
fun createTupleGreaterThanOrEqual(numbers: List<Int>, target: Int): List<Int> {

    // Initialize an empty list to store the valid numbers
    val validNumbers = mutableListOf<Int>()

    // Iterate through the numbers and check if they are greater than or equal to the target
    for (num in numbers) {
        if (num >= target) {
            validNumbers.add(num)
        }
    }

    // Return the list of valid numbers
    return validNumbers
}
/**
 * This exercise focuses on creating a tuple and finding the numbers greater than or equal to a given target.
 *
 * Given a list of numbers, you need to create a tuple containing only the numbers that are greater than or equal to the target.
 * The function should return the tuple.
 *
 * @param numbers A list of integers.
 * @param target The target number to compare against.
 * @return A tuple containing only the numbers greater than or equal to the target.
 *
 * Example:
 * createTupleGreaterThanOrEqual(listOf(2, 7, 1, 9, 5, 3, 8), 5) => (7, 9, 5, 8)
 */
fun createTupleGreaterThanOrEqual(numbers: List<Int>, target: Int): List<Int> {
/**
 * This exercise focuses on creating a tuple and finding the numbers greater than or equal to a given target.
 *
 * Given a list of numbers, you need to create a tuple containing only the numbers that are greater than or equal to the target.
 * The function should return the tuple.
 *
 * @param numbers A list of integers.
 * @param target The target number to compare against.
 * @return A tuple containing only the numbers greater than or equal to the target.
 *
 * Example:
 * createTupleGreaterThanOrEqual(listOf(2, 7, 1, 9, 5, 3, 8), 5) => (7, 9, 5, 8)
 */
fun createTupleGreaterThanOrEqual(numbers: List<Int>, target: Int): List<Int> {

    // Initialize an empty list to store the valid numbers
    val validNumbers = mutableListOf<Int>()

    // Iterate through the numbers and check if they are greater than or equal to the target
    for (num in numbers) {
        if (num >= target) {
            validNumbers.add(num)
        }
    }

    // Return the list of valid numbers
    return validNumbers
}