Please enable JavaScript to use CodeHS

AP Computer Science A (Mocha)

Lesson 2.9 For Loops

Description

This lesson explores for loops–why they are useful, and how to use them to repeat code a fixed number of times.


Objective

Students will be able to…
* Create for loops to repeat code a fixed number of times
* Explain when a for loop would be a useful tool
* Utilize for loops to write programs that would be difficult / impossible without loops