In Chapter 6 you learn how to create repetition in a Turing program.
Remember the repetition you created in Scratch using the "forever block"? In more traditional programming languages, such as Turing, a similar structure is known as an infinite loop. That is, it continues without stopping. We use infinite loops in later chapters with graphics to create endless patterns and colours on the screen.
More often you will want some sort of loop you can control not to go on forever. We will look at two:
-- the conditional loop, which ends when some variable meets a certain condition, such as a number becoming more than 100
-- the counted loop, which continues only the number of times you want it to.