Please enable JavaScript to use CodeHS

AP Computer Science Principles: Cybersecurity

Lesson 4.8 General For Loops

Description

In this lesson, students will explore in more detail how they can modify the initialization statement, test statement, and increment statement in a for loop.


Objective

Students will be able to:

  • Explain the three parts of the for loop (initialization statement, test statement, increment statement)
  • Create for loops that iterate differently than the basic for loop structure (ie count by twos or count backwards)