Summing Up

This lesson has shown how to use loops and how to think about exceptions in the context of a loop. You've studied do/while loops, which run their code one or more times, and while loops, which run their code zero or more times.

Get SAMS Teach Yourself C++ in 10 Minutes SECOND EDITION now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.