The Conditional Operator and the 'switch' Statement

8. Flowchart of a break Statement


Answer:

0.3

Flowchart of a break Statement

Here is the example program fragment (again) and a flowchart that shows how it works. The box in the flowchart "evaluate code" means to get the current value of code. In a larger program this would usually be different every time.

Annotation 2020-03-09 210049


Question 8:

(Trick Question:) What would be the discount if code were 'a' ?