/**
 * This exercise requires you to create a tuple with the ages of all the animals under the care of a veterinarian,
 * using the range function and a given range of ages.
 * The tuple should include all ages from the startAge (inclusive) to the endAge (exclusive).
 *
 * For example, if startAge is 1 and endAge is 5, the tuple would be (1, 2, 3, 4).
 *
 * Your task is to write the Kotlin code that will generate the required tuple.
 *
 * Hint:
 * - Use the range function with the appropriate start and end arguments.
 * - Convert the range object to a tuple using the 'toList()" and 'toTypedArray()" functions.
 */
fun createVeterinarianTuple(startAge: Int, endAge: Int): Array<Int> {

    val ages = (startAge until endAge).toList().toTypedArray()
    return ages
}
/**
 * This exercise requires you to create a tuple with the ages of all the animals under the care of a veterinarian,
 * using the range function and a given range of ages.
 * The tuple should include all ages from the startAge (inclusive) to the endAge (exclusive).
 *
 * For example, if startAge is 1 and endAge is 5, the tuple would be (1, 2, 3, 4).
 *
 * Your task is to write the Kotlin code that will generate the required tuple.
 *
 * Hint:
 * - Use the range function with the appropriate start and end arguments.
 * - Convert the range object to a tuple using the 'toList()" and 'toTypedArray()" functions.
 */
fun createVeterinarianTuple(startAge: Int, endAge: Int): Array<Int> {
/**
 * This exercise requires you to create a tuple with the ages of all the animals under the care of a veterinarian,
 * using the range function and a given range of ages.
 * The tuple should include all ages from the startAge (inclusive) to the endAge (exclusive).
 *
 * For example, if startAge is 1 and endAge is 5, the tuple would be (1, 2, 3, 4).
 *
 * Your task is to write the Kotlin code that will generate the required tuple.
 *
 * Hint:
 * - Use the range function with the appropriate start and end arguments.
 * - Convert the range object to a tuple using the 'toList()" and 'toTypedArray()" functions.
 */
fun createVeterinarianTuple(startAge: Int, endAge: Int): Array<Int> {

    val ages = (startAge until endAge).toList().toTypedArray()
    return ages
}