kotlin while loop
snippet in kotlin

kotlin if

user5197

if (a > b) {
    max = a
} else {
    max = b
}

kotlin while loop

user8540

while ( isTrue() );

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

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

while loop kotlin

user3208

for (item in collection) print(item)