RosettaCodeData/Task/Loops-Break/Kotlin/loops-break-1.kotlin
2023-09-01 09:35:06 -07:00

10 lines
186 B
Text

import kotlin.random.Random
fun main() {
while (true) {
val a = Random.nextInt(20)
println(a)
if (a == 10) break
println(Random.nextInt(20))
}
}