Log 3229
02/05/2024 2024-05-05 9:20$price = 10;
$quantity = 5;
$num_rounds = 2;
$discount_percent = 20;
$result = ($num_rounds == 1) ? $price * $quantity : ($price * $quantity) + ($price * $quantity * $num_rounds * $discount_percent / 100);
return htmlspecialchars($result);