The do while loop executes at least once.
The for loop is the best choice when the number of iterations is predictable.
The parenthetical expression following the while keyword is for the condition.
The parenthetical condition following the while keyword may always be true, such as while (true). However, to avoid an infinite loop, the break keyword would need to be used in the body of the loop.
The parenthetical condition following the while keyword may combine two expressions using a logical && or operator.
The purpose of the break keyword in a while loop is the same as it is in a for loopto prematurely terminate the loop.
The purpose of the continue keyword in a while loop is the same as it is in a for loop, to prematurely terminate the iteration of a loop.
A flag is a Boolean variable whose value indicates whether a condition exists.
If you were going to use nested while loops to print rows and columns , you would use the outer for loop to print the rows.
A variable declared inside the body of a do while loop does not have scope in the parenthetical expression following the while keyword.