/**
 * Given a dictionary containing the salaries of employees,
 * the function should calculate and return the average salary.
 *
 * Use the 'continue' statement to skip any employee whose salary
 * is above $100,000.
 */
fun calculateAverageSalary(employees: Map<String, Int>): Double {

    var totalSalary = 0
    var numEmployees = 0

    for ((employee, salary) in employees) {
        if (salary > 100000) {
            continue
        } else {
            totalSalary += salary
            numEmployees++
        }
    }

    val averageSalary = if (numEmployees > 0) {
        totalSalary.toDouble() / numEmployees
    } else {
        0.0
    }

    return averageSalary
}
/**
 * Given a dictionary containing the salaries of employees,
 * the function should calculate and return the average salary.
 *
 * Use the 'continue' statement to skip any employee whose salary
 * is above $100,000.
 */
fun calculateAverageSalary(employees: Map<String, Int>): Double {
/**
 * Given a dictionary containing the salaries of employees,
 * the function should calculate and return the average salary.
 *
 * Use the 'continue' statement to skip any employee whose salary
 * is above $100,000.
 */
fun calculateAverageSalary(employees: Map<String, Int>): Double {

    var totalSalary = 0
    var numEmployees = 0

    for ((employee, salary) in employees) {
        if (salary > 100000) {
            continue
        } else {
            totalSalary += salary
            numEmployees++
        }
    }

    val averageSalary = if (numEmployees > 0) {
        totalSalary.toDouble() / numEmployees
    } else {
        0.0
    }

    return averageSalary
}