Types of loops and examples of how they work.