Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

choose the type of loop that works best for the situation. when you kno…

Question

choose the type of loop that works best for the situation. when you know ahead of time how many passes you will make through a loop, a(n) loop is best. such a loop uses

Explanation:

Brief Explanations

When the number of loop - iterations is known in advance, a for - loop is typically the best choice. For - loops use a counter variable to control the number of times the loop body is executed.

Answer:

First blank: for
Second blank: a counter variable