/**
 * Given the number of cats and dogs at a veterinarian's clinic,
 * calculate the total number of days needed to schedule appointments for all the animals.
 *
 * The veterinarian can only schedule appointments for cats and dogs separately,
 * and each appointment slot can only accommodate one animal.
 *
 * @param cats The number of cats at the clinic.
 * @param dogs The number of dogs at the clinic.
 * @return The total number of days needed to schedule appointments for all the animals.
 */
fun calculateDaysToAppointments(cats: Int, dogs: Int): Int {

    val catAppointments = mutableListOf<Int>()
    val dogAppointments = mutableListOf<Int>()
    var totalDays = 0

    // Divide the cats into catAppointments
    for (cat in 1..cats) {
        catAppointments.add(cat)
    }

    // Divide the dogs into dogAppointments
    for (dog in 1..dogs) {
        dogAppointments.add(dog)
    }

    // Calculate the total number of days needed to schedule the appointments
    for (cat in catAppointments) {
        for (dog in dogAppointments) {
            totalDays++
        }
    }

    return totalDays
}

val result = calculateDaysToAppointments(3, 4)
/**
 * Given the number of cats and dogs at a veterinarian's clinic,
 * calculate the total number of days needed to schedule appointments for all the animals.
 *
 * The veterinarian can only schedule appointments for cats and dogs separately,
 * and each appointment slot can only accommodate one animal.
 *
 * @param cats The number of cats at the clinic.
 * @param dogs The number of dogs at the clinic.
 * @return The total number of days needed to schedule appointments for all the animals.
 */
fun calculateDaysToAppointments(cats: Int, dogs: Int): Int {
/**
 * Given the number of cats and dogs at a veterinarian's clinic,
 * calculate the total number of days needed to schedule appointments for all the animals.
 *
 * The veterinarian can only schedule appointments for cats and dogs separately,
 * and each appointment slot can only accommodate one animal.
 *
 * @param cats The number of cats at the clinic.
 * @param dogs The number of dogs at the clinic.
 * @return The total number of days needed to schedule appointments for all the animals.
 */
fun calculateDaysToAppointments(cats: Int, dogs: Int): Int {

    val catAppointments = mutableListOf<Int>()
    val dogAppointments = mutableListOf<Int>()
    var totalDays = 0

    // Divide the cats into catAppointments
    for (cat in 1..cats) {
        catAppointments.add(cat)
    }

    // Divide the dogs into dogAppointments
    for (dog in 1..dogs) {
        dogAppointments.add(dog)
    }

    // Calculate the total number of days needed to schedule the appointments
    for (cat in catAppointments) {
        for (dog in dogAppointments) {
            totalDays++
        }
    }

    return totalDays
}

val result = calculateDaysToAppointments(3, 4)