/**
 * A zoologist needs to calculate the total number of animals in a zoo.
 * Complete the code below to calculate the sum of all the different animal species in the zoo using addition assignment operators.
 */
fun calculateTotalNumberOfAnimals(numberOfLions: Int, numberOfTigers: Int, numberOfBears: Int, numberOfGiraffes: Int): Int {

    // Initialize the total number of animals to zero
    var totalAnimals = 0

    // Use addition assignment operator to add up each species
    totalAnimals += numberOfLions
    // Add the number of tigers to the total
    totalAnimals += numberOfTigers
    // Add the number of bears to the total
    totalAnimals += numberOfBears
    // Add the number of giraffes to the total using an addition assignment operator
    totalAnimals += numberOfGiraffes

    return totalAnimals
}
/**
 * A zoologist needs to calculate the total number of animals in a zoo.
 * Complete the code below to calculate the sum of all the different animal species in the zoo using addition assignment operators.
 */
fun calculateTotalNumberOfAnimals(numberOfLions: Int, numberOfTigers: Int, numberOfBears: Int, numberOfGiraffes: Int): Int {
/**
 * A zoologist needs to calculate the total number of animals in a zoo.
 * Complete the code below to calculate the sum of all the different animal species in the zoo using addition assignment operators.
 */
fun calculateTotalNumberOfAnimals(numberOfLions: Int, numberOfTigers: Int, numberOfBears: Int, numberOfGiraffes: Int): Int {

    // Initialize the total number of animals to zero
    var totalAnimals = 0

    // Use addition assignment operator to add up each species
    totalAnimals += numberOfLions
    // Add the number of tigers to the total
    totalAnimals += numberOfTigers
    // Add the number of bears to the total
    totalAnimals += numberOfBears
    // Add the number of giraffes to the total using an addition assignment operator
    totalAnimals += numberOfGiraffes

    return totalAnimals
}