The difference between the representation of a decision structure and a loop in a flowchart.
In a selection structure, the logic goes in one of two directions after the question, and then the flow comes back together; the question is not asked a second time within the structure. In a loop, if the answer to the question results in the loop being entered and the loop statements executing, then the logic returns to the question that started the loop. When the body of a loop executes, the question that controls the loop is always asked again.
Comments
Leave a comment