As we have discussed earlier, loop are used for repeated statement executions. Same as while loop ‘For Loop’ is also an entry control loop. Means
We have discussed while loop in our earlier post. There is another loop for same purpose is do.while. Do.. While is an exit control loop.