You are given a list of numbers. You must check if every number is even and less than or equal to 20.
Test predicates: checking elements in collection
Every number is even
Report a typo
Sample Input 1:
2 4 8 22Sample Output 1:
falseWrite a program in Kotlin
fun main() {
val list = readln().split(" ").map { it.toInt() }
// write your code here
val res =
println(res)
}
___
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.