Hacking the Matrix

Report a typo

Neo is trying to hack the Matrix. He has a list of codes, but to solve this challenge, he must rewrite the list ignoring the last numbers that are even. Please help Nero hack Matrix by printing the list.

Sample Input 1:

1 2 3 8 10 10

Sample Output 1:

[1, 2, 3]
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