A condition-controlled loop would be used ... the algorithm stops. This program iterates as many times as is necessary and will keep iterating as long as (while) the condition is met.
If the condition is never met, then the program loops infinitely. Consider this simple algorithm to count up in twos from one to a hundred: the variable ‘count’ is set to 1 the ‘while ...