Excuse me but isn't this rather elementary? Every language I have ever used has essentially the same logic for loops and has all the same ones. Any book on any language, even GW-BASIC, is going to have a few pages on loops. Thjs isn't new information, this is something I would expect that anyone who has ever written software knows well.

Variables, conditionals, and loops. Common to every language.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store