168k views
4 votes
A mistake programmers often make with loops is that they ____.

A. enclose the inner loop entirely within the outer loop in a nested loop
B. include statements inside the loop that belong outside the loop
C. increment the loop control variable inside of the loop body
D. initialize the loop control variable prior to entering the loop body

1 Answer

4 votes

I think the best answer is D. Initialize the loop control variable prior to entering the loop body.

Please correct me if I'm wrong!! I'd be happy to fix it!! :)

User Joao Carlos
by
5.3k points