Computer Languages

Control Structures

[ Back to Lecture Notes ]

Computer instructions reflect the operations a computer can perform and the tasks we want it to accomplish:

Control structures are used to express algorithms as programs. Four basic ways to structure statements (instructions) in most languages are:


Sequence


Sequential Program Control

[ TOP ]

Selection


Conditional Program Control

[ TOP ]

Loop


Repetitive Program Control

[ TOP ]

Subprogram


Control via Subprograms
Also called procedure, function, method, or subroutine

[ TOP ]

Revised: 19 JAN 2002 22:25