(E.G : Go to school - Learn - Leave school )
A selection in program flow control is a get of if statements that are followed by choice orders.
(E.G : would you like to turn the light off - Yes = light on No = light off)
A Iteration in program flow control is is a set of instructions that can contain loops and repeating actions.
(E.G: Turn kettle on - Is there any water? - No = go back to turn kettle on -Yes = Start boiling to 100 degrees - Has Water reached the temperature set? - no go back to start boiling to 100 degrees - yes = turn kettle off)
Source : http://en.wikipedia.org/wiki/Control_flow
No comments:
Post a Comment