Kotlin do-while loop
do-while loop first executes the code of do block then it checks the condition. do-while loop executes at least once even the condition of while is false. Syntax Example Let’s see an example where a block of code executes only once and the condition in while is false.