What's up with infinite loops?
falsetrueNice! We can avoid infinite loops by making sure a while loop's run condition becomes false and a for loop's control variable grows or shrinks beyond a threshold.
Not quite! We can avoid infinite loops by making sure a while loop's run condition becomes false and a for loop's control variable grows or shrinks beyond a threshold.