/**
 * This exercise requires the completion of a loop control statement using dictionary methods.
 * Given a dictionary of aircraft names as keys and their corresponding number of engines as values,
 * the task is to count the total number of engines in the dictionary and return it.
 * You need to use a loop control statement to iterate through the dictionary and add up the engine counts.
 *
 * @param dictData A dictionary containing aircraft names and their engine counts.
 * @return The total number of engines in the dictionary.
 */
fun countLoop(dictData: Map<String, Int>): Int {

    var totalEngines = 0

    // Complete the loop control statement below to iterate through the dictionary and sum up the engine counts
    for (engineCount in dictData.values) {
        totalEngines += engineCount
    }

    return totalEngines
}
/**
 * This exercise requires the completion of a loop control statement using dictionary methods.
 * Given a dictionary of aircraft names as keys and their corresponding number of engines as values,
 * the task is to count the total number of engines in the dictionary and return it.
 * You need to use a loop control statement to iterate through the dictionary and add up the engine counts.
 *
 * @param dictData A dictionary containing aircraft names and their engine counts.
 * @return The total number of engines in the dictionary.
 */
fun countLoop(dictData: Map<String, Int>): Int {
/**
 * This exercise requires the completion of a loop control statement using dictionary methods.
 * Given a dictionary of aircraft names as keys and their corresponding number of engines as values,
 * the task is to count the total number of engines in the dictionary and return it.
 * You need to use a loop control statement to iterate through the dictionary and add up the engine counts.
 *
 * @param dictData A dictionary containing aircraft names and their engine counts.
 * @return The total number of engines in the dictionary.
 */
fun countLoop(dictData: Map<String, Int>): Int {

    var totalEngines = 0

    // Complete the loop control statement below to iterate through the dictionary and sum up the engine counts
    for (engineCount in dictData.values) {
        totalEngines += engineCount
    }

    return totalEngines
}