Step Into C · Lesson 5 · Control Flow
Loops
for, while, do-while, nesting, break and continue.
- ~25 minreading and coding
- 4missions
- membersaccess
- Clanguage
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
- Repeating work
- while
- for
- do / while
- break and continue
- Nested loops
- Infinite loops
- Accumulating results
Missions
- Count to ten
- Little Gauss
- A triangle
- Skip and stop