cpp finish chapter 5: loops and relational expressions