Skip to main content

8.1) Loops Within Loops


Nesting loops is vitally important for scientific programming. For example, if you are developing a program that models a process taking place over time for a set of points in space then you will likely need to have nested loops to deal with both of these factors.

On the next page through a task we will introduce you to loops within loops.