What is entry controlled and exit controlled loop? Give example.

4 views

1 Answers

The loop in which test condition is checked in the beginning of the loop, are known as entry controlled loop. For Example: while loop. Whereas, when statements inside the loop body is executed and then the condition is checked that loop is known to be as exit controlled loop. For Example: do-while loop.

4 views