Most of the procedures that you have seen so far have been fairly simple - they start at the first line, finish at the last, and execute the lines in between one after the other. However, there are times when you want to run only one section of code, or perhaps run a section of code more than once, depending on certain conditions. To do this, you have to introduce control structures into your code. These are what we'll look at in this chapter.
How to make decisions in a program
How to perform repetitive tasks
How to store variables in an array
The difference between static and dynamic arrays