Allowing the user to enter a value indicating the loop should stop.
1, 5, 1
The number of iterations does not have to be known.
foreach
for (int r = 0, c = 5; r 2; r++, c--)
off-by-one
20, 99, 0
recursive
before the loop body
performed as long as the conditional expression evaluates to true
6
is out of scope when the loop terminates
do...while or do
for
iteration or looping
True
True
do...while
the simplest case should be determined
3
state
handles the repetition for you
0
5
is written following the first semicolon
recursion
counter-controlled
True
True
The conditional expression must be set up prior to the loop.