Additional Control Structures

The switch Statement
(A Template)

The switch Statement
(An Example)

The switch Statement
(An Incorrect Example, grade = ‘C’)

The switch Statement
(An Incorrect Example, grade = ‘C’)

The switch Statement
(An Incorrect Example, grade = ‘C’)

The switch Statement
(An Incorrect Example, grade = ‘C’)

The switch Statement
(An Incorrect Example, grade = ‘C’)

The switch Statement
(An Incorrect Example, grade = ‘C’)

The switch Statement
(An Incorrect Example, grade = ‘C’)

The do-while Statement

The for Statement

The break and
continue Statements

An Example Using
break and continue

An Example Using break
and continue (num1 = 200, num2 = 55)

An Example Using break
and continue (num1 = 200, num2 = 55)

An Example Using break
and continue (num1 = 200, num2 = 55)

An Example Using break
and continue (num1 = 200, num2 = 55)

An Example Using break
and continue (num1 = 200, num2 = 55)

An Example Using break
and continue (num1 = 200, num2 = 55)

An Example Using break
and continue (num1 = 200, num2 = 55)

Example Using break and continue (num1 = 2, num2 = 55, loopCount = 15)

Example Using break and continue (num1 = 2, num2 = 55, loopCount = 15)

Example Using break and continue (num1 = 2, num2 = 55, loopCount = 15)

Example Using break and continue (num1 = 2, num2 = 55, loopCount = 15)

Example Using break and continue (num1 = 2, num2 = 55, loopCount = 15)

Example Using break and continue (num1 = 2, num2 = 55, loopCount = 15)

Example Using break and continue (num1 = 2, num2 = 55, loopCount = 15)

Example Using break and continue (num1 = 2, num2 = 55, loopCount = 15)

Guidelines for Choosing
a Looping Statement

Testing and Debugging Hints