/**
 * This function takes in a list of numbers and a reference number.
 * It filters the numbers from the list that are greater than or equal to the reference number.
 * Then, it prints the filtered numbers in a nested loop format, where each iteration prints one number.
 */
fun printGreaterThanEqual(numList: List<Int>, num: Int) {

    val greaterThanEqualNums = numList.filter { it >= num }

    for (i in greaterThanEqualNums.indices) {
        for (j in 0..i) {
            print("${greaterThanEqualNums[i]} ")
        }
        println()
    }
}

// Example usage
/**
 * This function takes in a list of numbers and a reference number.
 * It filters the numbers from the list that are greater than or equal to the reference number.
 * Then, it prints the filtered numbers in a nested loop format, where each iteration prints one number.
 */
fun printGreaterThanEqual(numList: List<Int>, num: Int) {
/**
 * This function takes in a list of numbers and a reference number.
 * It filters the numbers from the list that are greater than or equal to the reference number.
 * Then, it prints the filtered numbers in a nested loop format, where each iteration prints one number.
 */
fun printGreaterThanEqual(numList: List<Int>, num: Int) {

    val greaterThanEqualNums = numList.filter { it >= num }

    for (i in greaterThanEqualNums.indices) {
        for (j in 0..i) {
            print("${greaterThanEqualNums[i]} ")
        }
        println()
    }
}

// Example usage