The Conditional Operator and the 'switch' Statement
8. Flowchart of a break Statement
Answer:
0.3
Flowchart of a break
Statement
break
StatementHere 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.
Question 8:
(Trick Question:) What would be the discount if code
were 'a' ?