Created
February 15, 2021 02:13
-
-
Save codinginflow/3ad6fd2ff73cbb6901b5272e096c2161 to your computer and use it in GitHub Desktop.
Kotlin for Beginners Part 12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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