Loops, together with Iteration, may not be one of the most important and handy tools in programming. Any code without looping (where it is applicable) would be impossible or, at least, a nightmare in programming, requiring many lines of unnecessary code, undermining abstraction, and making our code difficult to write and to read. But first of all, we are to differentiate looping from iteration. Iteration requires an array and runs over its arguments while for looping a programmer must set conditions like: do anything for a certain time; do anything while something is true, don’t do anything unless something is true. There are various types of looping related to the task we would like to complete. …

Emil Andreasyan

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