/**
 * Calculate the total cost of a marketing campaign.
 *
 * The function takes in the campaign budget, the cost per click, and the total number of clicks.
 * It calculates the total cost by multiplying the cost per click with the total number of clicks.
 * The function then returns the total cost.
 *
 * @param campaignBudget The total budget allocated for the marketing campaign.
 * @param costPerClick The cost incurred for each click on the campaign.
 * @param totalClicks The total number of clicks received on the campaign.
 * @return The total cost of the marketing campaign.
 */
fun calculateCampaignCost(campaignBudget: Double, costPerClick: Double, totalClicks: Int): Double {

    val totalCost = campaignBudget - (costPerClick * totalClicks)
    return totalCost
}
/**
 * Calculate the total cost of a marketing campaign.
 *
 * The function takes in the campaign budget, the cost per click, and the total number of clicks.
 * It calculates the total cost by multiplying the cost per click with the total number of clicks.
 * The function then returns the total cost.
 *
 * @param campaignBudget The total budget allocated for the marketing campaign.
 * @param costPerClick The cost incurred for each click on the campaign.
 * @param totalClicks The total number of clicks received on the campaign.
 * @return The total cost of the marketing campaign.
 */
fun calculateCampaignCost(campaignBudget: Double, costPerClick: Double, totalClicks: Int): Double {
/**
 * Calculate the total cost of a marketing campaign.
 *
 * The function takes in the campaign budget, the cost per click, and the total number of clicks.
 * It calculates the total cost by multiplying the cost per click with the total number of clicks.
 * The function then returns the total cost.
 *
 * @param campaignBudget The total budget allocated for the marketing campaign.
 * @param costPerClick The cost incurred for each click on the campaign.
 * @param totalClicks The total number of clicks received on the campaign.
 * @return The total cost of the marketing campaign.
 */
fun calculateCampaignCost(campaignBudget: Double, costPerClick: Double, totalClicks: Int): Double {

    val totalCost = campaignBudget - (costPerClick * totalClicks)
    return totalCost
}