bucle de kotlin hasta
for (i in 1 until 10) {
print(i)
}
Smoggy Snail
for (i in 1 until 10) {
print(i)
}
fun displayForLoop() {
for (i in 1..5)
println(i)
}
// Program to print line 5 times
fun main(args: Array<String>) {
var i = 1
while (i <= 5) {
println("Line $i")
++i
}
}
var i = 1
while (i < 5) { // while loop
println(i)
i++
}
var i = 1
do { // do-while loop
println(i)
i++
} while (i < 5)