Skip to content

Instantly share code, notes, and snippets.

@codinginflow
Created February 15, 2021 02:13
Show Gist options
  • Save codinginflow/3ad6fd2ff73cbb6901b5272e096c2161 to your computer and use it in GitHub Desktop.
Save codinginflow/3ad6fd2ff73cbb6901b5272e096c2161 to your computer and use it in GitHub Desktop.
Kotlin for Beginners Part 12
fun main() {
var i = 0
outer@ do {
println(i)
i++
//continue
var j = 0
while (j < 5) {
println("---$j")
j++
break@outer
println("I'm not printed")
}
println("I'm printed")
} while (i < 5)
var number = 8
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment