loop in Kotlin

By | October 9, 2017

Similar with any other language  loop in kotlin .

  • for loop
  • while loop
  • do while loop

basic for loop example

this loop is equivalent of java for loop

note:  in Kotlin if you want to access variable inside double quotation use $ sign to access this variable .

While Loop

do while loop 


Leave a Reply