what is iteration
doing things over and over repeatedly
general for loop form
for ( ; ; )
{
}
what does the condition for continuation mean
for as long as this condition is met, the loop will continue
what is the increment
what the value initilalised as increases or decreases by each time the code is run . It happens after statement is run
what is the statement
the code which will be executed if the condition is met
what does the closing curly bracket mean
for loop is exited
what is an enhanced loop
does it for each element of an array. takes an array and declares a compatible variable type
layout of an enhanced loop
for (int t: primes)
{
body
}