<P> A for - loop has two parts : a header specifying the iteration , and a body which is executed once per iteration . The header often declares an explicit loop counter or loop variable , which allows the body to know which iteration is being executed . For - loops are typically used when the number of iterations is known before entering the loop . For - loops can be thought of as shorthands for while - loops which increment and test a loop variable . </P>
<P> A for - loop has two parts : a header specifying the iteration , and a body which is executed once per iteration . The header often declares an explicit loop counter or loop variable , which allows the body to know which iteration is being executed . For - loops are typically used when the number of iterations is known before entering the loop . For - loops can be thought of as shorthands for while - loops which increment and test a loop variable . </P>
a variable that determines whether or not a loop will continue is a
a variable that determines whether or not a loop will continue is a
loop counter
loop counter