Chapter 6 for loops and do while loops