You are given a List of integers. Iterate through the given List and print in a single line the elements that are divisible by 2.
List
Even numbers
Report a typo
Sample Input 1:
8 11 13 2Sample Output 1:
8 2Write a program in Kotlin
fun solution(numbers: List<Int>) {
// put your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.