What are the differences between a condition-controlled loop and a count-controlled loop?

1 answer

Answer

1165708

2026-07-21 18:55

+ Follow

A Condition-Controlled loop keeps going until a certain condition is met, like say the user clicks a button, or the world ends or something. A Counter controlled loop keeps going until it has run a certain number of times.

For example if you create a variable x=0. And then every time your look runs you increase x by 1 (x=x+1), you can tell your loop to keep running until x=5. That way the loop would run 5 times until the *COUNTER* reaches 5. This would be a counter controlled loop

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.