C++20 sections · 1024 units
Open in Course

Section Recap

What we learned

You now understand loops in C++.

1.1. while loops repeat while a condition is true

2.2. for loops are best when you know the count

3.3. do-while guarantees at least one execution

4.4. break exits loops early, continue skips to next iteration

Good job. You can now repeat code without copying it. Next, you will learn arrays to store multiple values.