While loops

While loops are the same as in other languages, they will loop until the boolean condition in while is met:

var i = 0
while (i < 10) {
println("value is $i")
i += 1
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.11.240