used for when programmers want a statement to execute repeatedly
New cards
2
nested loop
a loop that is found inside a loop
New cards
3
while loop
while the condition is true the loop continues to execute, otherwise it exits the loop
New cards
4
infinite loop
the loop isn’t structured correctly, or there is an error in the logic which causes the loop to execute forever
New cards
5
for-loop
The condition is first checked to see if it is true, the statement will execute, and the steps will continue to repeat in the loop until the statement becomes false, then the loop ends