Kotlin Tutorial #20: while Loops
Channel: Peter Sommerhoff
Date: 2020-11-13

Join the Kotlin Developer Track early bird: https://www.codealong.tv/f/early-bird-signup

You already know how to use for loops for control flow. In this video, you'll learn how to use while loops to repeat blocks of code until a certain condition becomes invalid. This is useful in cases where you don't know in advance how many iterations may be necessary, for instance in an approximation algorithms and when reading user input.


Let me know what other tutorials you want to see (takes just 1 minute): https://petersommerhoff.typeform.com/to/mTEh94