Are they divisible by 3?

Report a typo

You are given a list of numbers. Write a filtering function that returns a list of numbers where each number is divisible by 3.

Sample Input 1:

1 2 3 4 5 6 7 8 9

Sample Output 1:

[3, 6, 9]
Write a program in Kotlin
fun main() {
val list = readln().split(" ").map { it.toInt() }
// write your code here
val res =

println(res)
}
___

Create a free account to access the full topic