15-110: Principles of Computing - Week 4

"for" Loops and Infinite Loops

Readings from the book

Chapter 2 (pp. 36-38) (omit continue and pass statements)

Suggested exercises from the book

Chapter 2: problems 7, 9, 11, 19, 21, 24, 25, 26 (note:  random numbers are optional at this point)