/**
 * As a fashion designer, you often offer discounts on your products.
 * Given an item's original price and a discount percentage, calculate the final discounted price.
 */
fun applyDiscount(itemPrice: Double, discountPercentage: Double): Double {

    val discountedPrice = if (discountPercentage > 0) {
        itemPrice - itemPrice * (discountPercentage / 100)
    } else {
        itemPrice
    }
    return discountedPrice
}
/**
 * As a fashion designer, you often offer discounts on your products.
 * Given an item's original price and a discount percentage, calculate the final discounted price.
 */
fun applyDiscount(itemPrice: Double, discountPercentage: Double): Double {
/**
 * As a fashion designer, you often offer discounts on your products.
 * Given an item's original price and a discount percentage, calculate the final discounted price.
 */
fun applyDiscount(itemPrice: Double, discountPercentage: Double): Double {

    val discountedPrice = if (discountPercentage > 0) {
        itemPrice - itemPrice * (discountPercentage / 100)
    } else {
        itemPrice
    }
    return discountedPrice
}