On Saturday, 3 November 2018 at 21:03:16 UTC, Venkat wrote: > The last break statement prevents the loop from returned for a > second iteration. Then why use a while ? The continue statement may abort the current iteration and start the next, causing the final break to not necessarily be executed every iteration.