0
kotlin
Fill in the blanks to output only the even numbers in the array. var arr = arrayOf(1, 2, 5, 6, 2, 8, 9) for(x in arr) { if (x % 2 != 0) { } println( ) }
5 odpowiedzi
+ 2
var arr = arrayOf(1, 2, 5, 6, 2, 8, 9)
for(x in arr) {
if
(x % 2 != 0) {
continue
}
println(x)
}
0
x
0
else println(x)
0
for(x in arr) {
if
(x % 2 != 0) {
continue
}
println(x)
0
for(x in arr) {
if
(x % 2 != 0) {
continue
}
println(x)