Break keyword with label

Report a typo

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

Enter a short text
___

Create a free account to access the full topic