18 lines
523 B
Markdown
18 lines
523 B
Markdown
# Module 02: Control Flow
|
|
|
|
## Learning Goals
|
|
|
|
- Write conditional logic with `if`, `else if`, and `else`
|
|
- Use `switch` statements and understand fall-through
|
|
- Implement loops: `for`, `while`, and range-based patterns
|
|
- Control loop execution with `break` and `continue`
|
|
|
|
## Exercises
|
|
|
|
| Exercise | Topic |
|
|
|----------|-------|
|
|
| `conditionals` | Classification, min/max, sign |
|
|
| `switch_statements` | Menu dispatch, enum handling |
|
|
| `loops` | Summation, factorial, search |
|
|
| `break_continue` | Filtering, early exit |
|