

It is used so that after some point of time the loop terminates.

Body of the Loop: The statements that are to be executed repeatedly are written in the body of the Loop.In an exit-controlled loop, the test expression is evaluated before exiting from the loop whereas in an entry-controlled loop the test expression is evaluated before entering the loop. If the condition is satisfied, the control goes inside the loop, otherwise, it is terminated. Its value decides whether the loop will be executed or terminated. Test Expression (Condition): It is a boolean expression.We can initialize multiple variables as well. Here, we either declare and initialize a control variable(s) or only initialize the variable(s) we are going to use in looping. Initialization Expression(s): Initialization is carried out only once before entering the loop.They also reduce the Time Complexity and Space Complexity - Loops are faster and more feasible as compared to Recursion.Loops make an easy flow of the control.

