/**
 * Given the number of prints needed and the price per print,
 * calculate the total cost for the photographer.
 *
 * @param prints The number of prints needed.
 * @param price The price per print.
 * @return The total cost for the prints.
 */
fun calculateCost(prints: Int, price: Double): Double {

    var totalCost = 0.0

    var count = 0
    while (count < prints) {
        var discount = 0.0
        while (discount < 0.1) {
            val cost = price - (price * discount)
            totalCost += cost
            discount += 0.01
        }
        count++
    }

    return totalCost
}
/**
 * Given the number of prints needed and the price per print,
 * calculate the total cost for the photographer.
 *
 * @param prints The number of prints needed.
 * @param price The price per print.
 * @return The total cost for the prints.
 */
fun calculateCost(prints: Int, price: Double): Double {
/**
 * Given the number of prints needed and the price per print,
 * calculate the total cost for the photographer.
 *
 * @param prints The number of prints needed.
 * @param price The price per print.
 * @return The total cost for the prints.
 */
fun calculateCost(prints: Int, price: Double): Double {

    var totalCost = 0.0

    var count = 0
    while (count < prints) {
        var discount = 0.0
        while (discount < 0.1) {
            val cost = price - (price * discount)
            totalCost += cost
            discount += 0.01
        }
        count++
    }

    return totalCost
}