Let Us C Solutions of chapter 4 The Loop control structure. Often in computer programming, it is necessary to perform a certain action a certain number of times or until a certain condition is met. The constructs that enable computers to perform certain repetitive tasks are called loops.
A while loop is the most basic type of loop. It will run as long as the condition is non-zero (true). Similarly, there are more loops, like for loop, do-while loop, etc. Looping can also be achieved by using recursion which you'll learn in upcoming chapters.