This section discusses the C statements that create loops: while, do, and for. These loops repeat while a condition is true or for a set number of times. We'll begin with the simplest loop, the while statement.