Kotlin while Loop

It is used to iterate a part of code several times. It executes until the condition is true. Syntax let’s take an example: Iterate through Array using while loop