Algorithm Building Blocks
Three core components:
- Sequencing: statements execute in order
- Selection: choice based on true/false condition
- Repetition: process repeats until outcome reached
Order matters—changing the sequence of statements, where a selection (if) is placed, or a loop's condition can change the algorithm's result, so trace the code carefully (though some changes, like reordering independent statements, leave the result the same).



