153k views
1 vote
A __________ -controlled loop repeats a specific number of times.

counter
decision
Boolean
sentinel/condition

1 Answer

7 votes

Final answer:

A counter-controlled loop repeats a specific number of times, using a counter variable to determine when to stop. For example, a for loop in programming has a clear start and end condition based on the counter value.

Step-by-step explanation:

A counter-controlled loop repeats a specific number of times. In programming, loops that run a predetermined number of times use a counter variable that increases or decreases with each iteration of the loop. Once the counter reaches a certain value, the loop terminates. For example, in a for loop in languages like Java or C++, the syntax explicitly specifies the start value, the end condition, and the increment for the counter variable.A counter-controlled loop repeats a specific number of times. Once the counter reaches a certain value, the loop terminates. For example, in a for loop in languages like Java or C++, the syntax explicitly specifies the start value, the end condition, and the increment for the counter variable.

A counter-controlled loop repeats a specific number of times. In programming, loops that run a predetermined number of times use a counter variable that increases or decreases with each iteration of the loop. Once the counter reaches a certain value, the loop terminates. For example, in a for loop in languages like Java or C++, the syntax explicitly specifies the start value, the end condition, and the increment for the counter variable.

User Cherven
by
7.8k points