Condition-controlled loops can be written to continue forever. This is known as an infinite loopA loop that repeats forever, ie indefinitely.. This program would run infinitely:
count = 10
repeat print(“Coding is cool”) count = count + 1
until count = 10
At the end of the loopA method used in programming to repeat a set of instructions., the value of the variableA memory location within a computer program where values are stored.count will be 11. Because with each iteration the value of count increases by one, count will never have the value ten, so the loop will run infinitely.
Infinite loops can be created using either while or repeat loops.