A program loop therefore consists of two segments:
body of the loop
control statement
The control statement tests certain conditions and then directs the repeated execution of the statements contained in the body of the loop.
In looping process in general would include the following four steps