There are three basic flow control constructs - sequential,
conditional (or decision), and loop (or iteration), as illustrated below.
Sequential Flow Control
Sequential Flow Control
A program is a sequence of instructions. Sequential flow is
the most common and straight-forward, where programming statements are executed
in the order that they are written - from top to bottom in a sequential manner.
Conditional Flow Control
There are a few types of conditionals, if-then,
if-then-else, nested-if (if-elseif-elseif-...-else), switch-case, and
conditional expression.
No comments:
Post a Comment
Please write your view and suggestion....