/**
 * This function takes a dictionary of sales data as input and returns the average sales amount.
 *
 * @param salesData A dictionary containing the sales data for different products.
 * @return Average sales amount.
 */
fun calculateAverageSales(salesData: Map<String, Int>): Double {

    var totalSales = 0

    for ((_, sales) in salesData) {
        totalSales += sales
    }

    val averageSales = totalSales.toDouble() / salesData.size

    return averageSales
}
/**
 * This function takes a dictionary of sales data as input and returns the average sales amount.
 *
 * @param salesData A dictionary containing the sales data for different products.
 * @return Average sales amount.
 */
fun calculateAverageSales(salesData: Map<String, Int>): Double {
/**
 * This function takes a dictionary of sales data as input and returns the average sales amount.
 *
 * @param salesData A dictionary containing the sales data for different products.
 * @return Average sales amount.
 */
fun calculateAverageSales(salesData: Map<String, Int>): Double {

    var totalSales = 0

    for ((_, sales) in salesData) {
        totalSales += sales
    }

    val averageSales = totalSales.toDouble() / salesData.size

    return averageSales
}