/**
 * This exercise involves printing the name of each pet that the veterinarian treats.
 *
 * Complete the code below to iterate through the pets list using a for loop and print the name of each pet.
 * Use the veterinarian's name as a prefix for each pet's name.
 *
 * @param veterinarian The veterinarian's name.
 * @param pets A list of pet names.
 */
fun printNames(veterinarian: String, pets: List<String>) {

    for (petName in pets) {
        println("$veterinarian treats $petName")
    }
}
/**
 * This exercise involves printing the name of each pet that the veterinarian treats.
 *
 * Complete the code below to iterate through the pets list using a for loop and print the name of each pet.
 * Use the veterinarian's name as a prefix for each pet's name.
 *
 * @param veterinarian The veterinarian's name.
 * @param pets A list of pet names.
 */
fun printNames(veterinarian: String, pets: List<String>) {
/**
 * This exercise involves printing the name of each pet that the veterinarian treats.
 *
 * Complete the code below to iterate through the pets list using a for loop and print the name of each pet.
 * Use the veterinarian's name as a prefix for each pet's name.
 *
 * @param veterinarian The veterinarian's name.
 * @param pets A list of pet names.
 */
fun printNames(veterinarian: String, pets: List<String>) {

    for (petName in pets) {
        println("$veterinarian treats $petName")
    }
}