Array
University of Oregon

Ch. 3, Selection

Definitions

  • Flow of Control =  which statement gets executed next? A.k.a., logic flow.
  • Control Structures = statements which control logic flow
  • Three categories of control structures:
    1. Sequence
    2. Selection
    3. Iteration (a.k.a., Loops)

Ch. 3, Selection Statements

The if statement allows you to choose between two paths of execution. Think,Fork in the Road.

Skip to toolbar