Skip to content

Oct 19: while Loops (vs for)

Meet in EnGeo 2208

Learning Objectives

After today's class, you should be able to:

  • Explain the syntax and meaning of a while statement.
  • Identify the three main components of a while loop.
  • Explain when to use a while loop versus a for loop.

Lesson Outline

Presentation [10 min]

  • While loops: initialization, condition, update

Activity [40 min]

Your To-Do List