* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
9 lines
793 B
Markdown
9 lines
793 B
Markdown
# Loops
|
|
|
|
Loops are fundamental control flow structures that enable the repetition of code blocks based on a condition. C++ provides three primary loop types: `for`, `while`, and `do-while`. The `for` loop is ideal when the number of iterations is known beforehand, while the `while` loop continues execution as long as a specified condition remains true. The `do-while` loop is similar to the `while` loop, but guarantees at least one execution of the code block, as the condition is checked at the end of the loop.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@C++ For Loop](https://www.w3schools.com/cpp/cpp_for_loop.asp)
|
|
- [@article@C++ While Loop](http://w3schools.com/cpp/cpp_while_loop.asp)
|
|
- [@article@C++ Do While Loop](https://www.w3schools.com/cpp/cpp_do_while_loop.asp) |