You are on page 1of 11

Introduction to Structure

Mrs. Maria Cristina A. Magon


(Instructor)
Structure
• Basic unit of programming logic. The
instructions contained in every method
of every application are created using
combinations of three structures. Each
structure is one of the following:
1. Sequence
2. Selection
3. Loop
Sequence structure
• You perform an action or task, and then
you perform the next action, in order.
• Can contain any number of tasks, but
there is no option of branching to skip or
repeat any of the tasks.
• Once you start a series of actions in a
sequence, you must continue step by step
until the sequence ends.
Selection structure
• One of two branches of logic is followed
based on a decision
• Contains a decision in which the logic can
break in one of two paths
Loop/ Iteration Structure
• Repeats instructions based on a decision

You might also like