Skip to main content
Ask students “Do we need a loop here?” to help them determine the appropriate loop to use without having to know the proper syntax to write that loop.
- 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!