/**
 * This function calculates the final price after applying a discount
 * based on the given price and discount percentage.
 *
 * @param price The original price of the product.
 * @param discountPercentage The discount percentage to be applied.
 * @return The final price after applying the discount.
 */
fun calculateDiscount(price: Double, discountPercentage: Double): String {

    if (price < 0) {
        return "Invalid price. Please provide a positive value."
    }

    if (discountPercentage < 0 || discountPercentage > 100) {
        return "Invalid discount percentage. Please provide a value between 0 and 100."
    }

    val finalPrice = price - (price * (discountPercentage / 100))

    return if (finalPrice % 10.0 == 0.0) {
        "The final price is a multiple of 10."
    } else {
        "The final price is not a multiple of 10."
    }
}
/**
 * This function calculates the final price after applying a discount
 * based on the given price and discount percentage.
 *
 * @param price The original price of the product.
 * @param discountPercentage The discount percentage to be applied.
 * @return The final price after applying the discount.
 */
fun calculateDiscount(price: Double, discountPercentage: Double): String {
/**
 * This function calculates the final price after applying a discount
 * based on the given price and discount percentage.
 *
 * @param price The original price of the product.
 * @param discountPercentage The discount percentage to be applied.
 * @return The final price after applying the discount.
 */
fun calculateDiscount(price: Double, discountPercentage: Double): String {

    if (price < 0) {
        return "Invalid price. Please provide a positive value."
    }

    if (discountPercentage < 0 || discountPercentage > 100) {
        return "Invalid discount percentage. Please provide a value between 0 and 100."
    }

    val finalPrice = price - (price * (discountPercentage / 100))

    return if (finalPrice % 10.0 == 0.0) {
        "The final price is a multiple of 10."
    } else {
        "The final price is not a multiple of 10."
    }
}