Answers for "how to create while loop inside class kotlin"

0

kotlin while loop

while ( isTrue() );

while ( isTrue() ) {
  println("while!")
}

do {
  println("do while!")
} while (isTrue())
Posted by: Guest on February-02-2021
0

while loop kotlin

fun displayForLoop() {
        for (i in 1..5)
            println(i)
    }
Posted by: Guest on October-13-2021

Code answers related to "how to create while loop inside class kotlin"

Browse Popular Code Answers by Language