- When teaching students how to use loops, ask them:
- Where do we need a loop?
- Why do we need a loop there?
- How do we write that loop?
- The following loops are important in AP CS A and require a lot of specific syntax:
- while
- do-while loops
- for
- for-each loops
- Note from the CS Teaching Tips Team: Send students struggling with loops to CodingBat for more practice!