Programming in C++Dale/Weems/HeadingtonChapter 9Additional Control Structures(Switch, Do..While, For statements)
Switch Statement
PPT Slide
Control in Switch Statement
Do-While Statement
Do-While Loop vs. While Loop
Do-While Loop
A Count-Controlled Loop
Example of Repetition
The output was:
What happens?
Count-controlled loop
What is output?
OUTPUT
What output from this loop?
Several Statements in Body Block
Break Statement
Continue Statement
Imagine using . . .
Write prototype for void function
Write a function using prototype
Email: ssorkin@essex.cc.md.us
Home Page: http://www.essex.cc.md.us/Essex/People/ssorkin/index.html