Loops in Loops in Loops…

Donald Kahn, Nevin B. Scrimshaw · Birkhäuser Boston eBooks · 1983

We have been using loops in previous programs without examining them closely. These important creatures really deserve a chapter of their own. Loops can be nested inside of each other, and, when teamed with conditional logic, can make your program fold into itself like an Escher design. We will use loops to illustrate the Monte Carlo Method which essentially consists of keeping score while the computer performs a task over and over again.

Read the paper · More papers on PaperTik