Step Into Labs

Step Into C · Lesson 5 · Control Flow

Loops

for, while, do-while, nesting, break and continue.

Part of Step Into C. The full lesson, its missions and the real compiler and debugger are in the course. Try a free lesson first to see how it works.

Loops run a block of code repeatedly while a condition holds. C has three kinds.

In this lesson

Missions

  1. Count to ten
  2. Little Gauss
  3. A triangle
  4. Skip and stop