explain loop in c and types of loop

What is loop and types of loop

Loop:

Group of instructions computer executes repeatedly while some condition remains true

Types of loop:

                 Entery Control
                 Exit Control


Counter-controlled repetition
Definite repetition: know how many times loop will execute
Control variable used to count repetitions
Sentinel-controlled repetition
Indefinite repetition
Used when number of repetitions not known
Sentinel value indicates "end of data"

Labels: