The loop is a kind of programming feature that helps the perform the task N number of times. if the set of instructions performs N number of times then we use the loop.
How many Types of Loops?
Entry Control Loop
Entry Control Looprestrict the entry of the compiler by checking the conditions given in the loop starting. Two Entry control loops are available in C-Language.
While Loop
While Loop is the Entry Control Loop.In Which checking the condition before executing the while Read More...
For Loop
For Loop is the Entry Control Loop. Which has 3 sections i.e. Initialisation, Condition, Increment/Decrement and then For loop body starts The compiler comes to for loop and then the Initialisation part is executed and then checks the condition given in the condition portion. if the Condition is true then for loop body is executed otherwise not. Read More...
Exit Control Loop
Exit Control Loop executes at least once then the compiler checks the condition of the loop if the condition is true then the loop executes until the condition is not false Exit Control Loop has only one loop
Do-While Loop
Do-While Loop is the Exit Control Loop.In Which checking the condition after executing the Do-while body at least once. Read More...
We you have any doubt let me know :)