Components of Programming

Virginia SOL CM.CP.3

Perform iteration with loops.

What students need to be able to do

  • Write and implement 'while' loops.
  • Write and implement 'for' loops.
  • Differentiate between loops that run a fixed number of times and loops that run an indefinite number of times.
  • Identify conditions that cause infinite loops.
  • Determine the outcome of code segments that include loops.