149k views
10 votes
A condition-controlled loop uses a while loop.

true

false

1 Answer

2 votes

Answer:

true

Step-by-step explanation:

a while loop is a condition-controlled loop. While loops continue no matter what under a certain condition, unless you insert the keyword break.

One example in python is this:

while x > y:

pass

The keyword to break a while loop may vary depending on the coding language you are using.

Tip The pass keyword allows a no error contact between loop and the terminal. Pass in a nutshell is almost as if saying nothing at all, but just leaving the condition blank. We only use pass because it prevents errors instead of no value.

User Vilva
by
2.8k points