CONTROL STRUCTURE NOTES
Site: | MARK LEMURT |
Course: | MARK LEMURT |
Book: | CONTROL STRUCTURE NOTES |
Printed by: | |
Date: | Saturday, 16 August 2025, 1:03 AM |
1. introduction to control structures
Control structures are fundamental building blocks in programming that determine the flow or direction in which a program executes. Instead of running code line-by-line from top to bottom, control structures allow programs to make decisions, repeat actions, and choose between different actions based on conditions.
2. types of control structures
-
Sequential Control Structure
-
Selection (Decision-Making) Control Structure
-
if
-
if-else
-
if-elif-else
(Python) /else if
(C/Java) -
switch
(C/Java)
-
-
Iteration (Looping) Control Structure
-
for
loop -
while
loop -
do-while
loop
-
3. types of control structures
-
Sequential Control Structure
-
Selection (Decision-Making) Control Structure
-
if
-
if-else
-
if-elif-else
(Python) /else if
(C/Java) -
switch
(C/Java)
-
-
Iteration (Looping) Control Structure
-
for
loop -
while
loop -
do-while
loop
-