Even numbers

Report a typo

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.

Sample Input 1:

8 11 13 2

Sample Output 1:

8 2
Write a program in Kotlin
fun solution(numbers: List<Int>) {
// put your code here
}
___

Create a free account to access the full topic