Kotlin - Collections Fundamentals
Given
val nums = listOf(1, 2, 3, 4, 5, 6), which Kotlin code correctly uses forEach to print only the even numbers?