Ninth graders learn nested loops — a loop inside another loop. The inner loop runs completely for every pass of the outer loop, which makes nested loops perfect for grids, tables, and patterns. They check the ideas, then trace a nested loop.
Students will be able to…
What happens when you put one loop inside another?
Project each one and have students answer about nested loops.
Tap any phase to open the teacher moves and student actions.
How would you print a 3-by-4 grid of stars with loops?
Students learn.
Students practice.
Students apply.
Students close.
Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students.
Use nested control structures.
Justify the choice of control structures.
Test and debug loops.
Reason about repetition and scale.
Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.
Have students write a nested loop that draws a grid. A printable trace worksheet is in the CS library.
Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.
A quick self-check with instant feedback, drawn from this lesson’s key terms.
A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.