/**
 * This function takes in the number of lions, elephants, and giraffes in a zoo and returns the total number of animals.
 *
 * @param numLions The number of lions in the zoo.
 * @param numElephants The number of elephants in the zoo.
 * @param numGiraffes The number of giraffes in the zoo.
 * @return The total number of animals in the zoo.
 */
fun countAnimals(numLions: Int, numElephants: Int, numGiraffes: Int): Int {

    // Check if all the arguments are positive integers
    if (numLions > 0 && numElephants > 0 && numGiraffes > 0) {
        // Calculate the total count of animals in the zoo
        val totalCount = numLions + numElephants + numGiraffes
        // Print the total count of animals
        println("Total number of animals in the zoo: $totalCount")
        return totalCount
    } else {
        // If any argument is not a positive integer
        return -1
    }
}
/**
 * This function takes in the number of lions, elephants, and giraffes in a zoo and returns the total number of animals.
 *
 * @param numLions The number of lions in the zoo.
 * @param numElephants The number of elephants in the zoo.
 * @param numGiraffes The number of giraffes in the zoo.
 * @return The total number of animals in the zoo.
 */
fun countAnimals(numLions: Int, numElephants: Int, numGiraffes: Int): Int {
/**
 * This function takes in the number of lions, elephants, and giraffes in a zoo and returns the total number of animals.
 *
 * @param numLions The number of lions in the zoo.
 * @param numElephants The number of elephants in the zoo.
 * @param numGiraffes The number of giraffes in the zoo.
 * @return The total number of animals in the zoo.
 */
fun countAnimals(numLions: Int, numElephants: Int, numGiraffes: Int): Int {

    // Check if all the arguments are positive integers
    if (numLions > 0 && numElephants > 0 && numGiraffes > 0) {
        // Calculate the total count of animals in the zoo
        val totalCount = numLions + numElephants + numGiraffes
        // Print the total count of animals
        println("Total number of animals in the zoo: $totalCount")
        return totalCount
    } else {
        // If any argument is not a positive integer
        return -1
    }
}