COSC 1337 - Programming Fundamentals II


Example C++ Programs
Chapter 5 - Looping

Topics covered

Program

Data

A small menu-driven program that shows how to use a while statement to implement a sentinel-controlled loop

menu using while

 

A small menu-driven program that shows how to use a do-while statement to implement a sentinel-controlled loop (same as above)

menu using do-while

 

 


Creative Commons License
© Austin Community College 2016. The content on this page is licensed under a
Creative Commons Attribution 4.0 International License.
Last updated: February 14, 2016