What is the output of this code?
for (i in 1..4) {
loop@ for (j in 1..3) {
for (k in 1..2) {
if (i == 2 || j == 3 || k == 2) break@loop
print("$k")
}
}
}
What is the output of this code?
for (i in 1..4) {
loop@ for (j in 1..3) {
for (k in 1..2) {
if (i == 2 || j == 3 || k == 2) break@loop
print("$k")
}
}
}
Create a free account to access the full topic