Two examples of using loops in C++, uses animation pauses to emphasize looping effect