5.4. Iterative Statements
Iterative statements, commonly called loops, provide for repeated execution until a condition is true. The while
and for
statements test the condition before executing the body. The do while
executes the body and then tests its condition.
Get C++ Primer, Fifth 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.