0 votes
by (160 points)
Which type of loop uses a Boolean expression to control the number of times a loop repeats?

1 Answer

0 votes
by (1.3k points)
In a For loop, the programmer should know the exact number of iterations the loop must perform before writing the code. The While loop gets its name from the way it works: While a condition is false, do some task. The conditions that control a loop repetition are Boolean expressions.

Related questions

0 votes
1 answer
0 votes
1 answer
asked Nov 28, 2019 by condition (360 points)
0 votes
1 answer
0 votes
1 answer
asked Mar 3, 2021 by whileloop (160 points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
...