Programming in C++ Do-While Loop DO Statement WHILE Expression TRUE FALSE When the expression is tested and found to be false, the loop is exited and control passes to the statement that follows the do-while statement 16
16 Do-While Loop When the expression is tested and found to be false, the loop is exited and control passes to the statement that follows the do-while statement. Statement Expression DO WHILE FALSE TRUE
Programming in C++ A Count-Controlled Loop SYNTAX for( initialization, test expression; update 0 or more statements to repeat
17 A Count-Controlled Loop SYNTAX for ( initialization ; test expression ; update ) { 0 or more statements to repeat }