Loops Conditionals Subroutines

Back to Structured Programming

The three fundamental control structures that replace goto: loops (for, while) for repetition, conditionals (if/else, switch) for branching, and subroutines for modularity. Together they provide all the control flow needed for any computation.

programming-paradigms structured control-flow