2016 Update
This commit is contained in:
parent
948b86eafa
commit
dcf5d15da3
7965 changed files with 139854 additions and 31002 deletions
11
Task/Loops-Break/Kotlin/loops-break.kotlin
Normal file
11
Task/Loops-Break/Kotlin/loops-break.kotlin
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import java.util.Random
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
val rand = Random()
|
||||
while (true) {
|
||||
val a = rand.nextInt(20)
|
||||
println(a)
|
||||
if (a == 10) break
|
||||
println(rand.nextInt(20))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue