Looping Statement: The purpose of a loop structure is to repeat certain tasks until some condition is satisfied. Several variations of a loop structure are available in each programming language to handle different situations.
A program loop consists of two segments, one is the body of the loop and the other is the control statement. The control statement tests certain conditions and then directs the repeated execution of the statements contained in the body of the loop. The test may be either to determine whether the loop has repeated the specified number of times or to determine whether the particular condition has been met.