/**
 * Given a list of numbers and a threshold, 
 * calculate the sum of numbers that are above the threshold.
 * If a number is equal to the threshold, skip it.
 *
 * @param numbers a list of numbers
 * @param threshold a number
 * @return the sum of numbers that are above the threshold
 *
 * Example:
 * - sumAboveThreshold(listOf(10, 20, 30, 40, 40), 30) returns 70
 * - sumAboveThreshold(listOf(5, 10, 15, 20), 10) returns 35
 */
fun sumAboveThreshold(numbers: List<Int>, threshold: Int): Int {

    var total = 0

    for (num in numbers) {
        if (num == threshold) {  // skip if number is equal to the threshold
            continue
        } else if (num < threshold) {  // break the loop if number is less than the threshold
            break
        } else {
            total += num
        }
    }

    return total
}
/**
 * Given a list of numbers and a threshold, 
 * calculate the sum of numbers that are above the threshold.
 * If a number is equal to the threshold, skip it.
 *
 * @param numbers a list of numbers
 * @param threshold a number
 * @return the sum of numbers that are above the threshold
 *
 * Example:
 * - sumAboveThreshold(listOf(10, 20, 30, 40, 40), 30) returns 70
 * - sumAboveThreshold(listOf(5, 10, 15, 20), 10) returns 35
 */
fun sumAboveThreshold(numbers: List<Int>, threshold: Int): Int {
/**
 * Given a list of numbers and a threshold, 
 * calculate the sum of numbers that are above the threshold.
 * If a number is equal to the threshold, skip it.
 *
 * @param numbers a list of numbers
 * @param threshold a number
 * @return the sum of numbers that are above the threshold
 *
 * Example:
 * - sumAboveThreshold(listOf(10, 20, 30, 40, 40), 30) returns 70
 * - sumAboveThreshold(listOf(5, 10, 15, 20), 10) returns 35
 */
fun sumAboveThreshold(numbers: List<Int>, threshold: Int): Int {

    var total = 0

    for (num in numbers) {
        if (num == threshold) {  // skip if number is equal to the threshold
            continue
        } else if (num < threshold) {  // break the loop if number is less than the threshold
            break
        } else {
            total += num
        }
    }

    return total
}