/**
 * Calculates the age of an animal based on its birth year.
 *
 * @param animal The name of the animal.
 * @param birthYear The birth year of the animal.
 * @return The age of the animal.
 */
fun calculateAge(animal: String, birthYear: Int): Int {

    val currentYear = 2023  // Assume the current year is 2023

    var age = currentYear - birthYear

    // Check the type of animal
    when (animal) {
        "cat" -> age /= 7
        "dog" -> age /= 7
        "rabbit" -> age /= 3
        "hamster" -> age /= 2
    }

    return age
}
/**
 * Calculates the age of an animal based on its birth year.
 *
 * @param animal The name of the animal.
 * @param birthYear The birth year of the animal.
 * @return The age of the animal.
 */
fun calculateAge(animal: String, birthYear: Int): Int {
/**
 * Calculates the age of an animal based on its birth year.
 *
 * @param animal The name of the animal.
 * @param birthYear The birth year of the animal.
 * @return The age of the animal.
 */
fun calculateAge(animal: String, birthYear: Int): Int {

    val currentYear = 2023  // Assume the current year is 2023

    var age = currentYear - birthYear

    // Check the type of animal
    when (animal) {
        "cat" -> age /= 7
        "dog" -> age /= 7
        "rabbit" -> age /= 3
        "hamster" -> age /= 2
    }

    return age
}