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( ) }

20th Mar 2021, 11:03 AM
Mostafa Alafif
Mostafa Alafif - avatar
5 ответов
+ 2
var arr = arrayOf(1, 2, 5, 6, 2, 8, 9) for(x in arr) { if (x % 2 != 0) { continue } println(x) }
23rd Feb 2022, 7:38 PM
Md. Al-Amin
Md. Al-Amin - avatar
0
x
20th Mar 2021, 11:04 AM
HBhZ_C
HBhZ_C - avatar
0
else println(x)
20th Mar 2021, 11:29 AM
JaScript
JaScript - avatar
0
for(x in arr) { if (x % 2 != 0) { continue } println(x)
9th May 2021, 11:05 AM
Fabrice SINDAMBIWE
Fabrice SINDAMBIWE - avatar
0
for(x in arr) { if (x % 2 != 0) { continue } println(x)
12th Jan 2023, 8:35 AM
Wondifraw Seifu
Wondifraw Seifu - avatar