Computer Applications
Define the following with their constructs:
(a) Entry controlled loop
(b) Exit controlled loop
Java Iterative Stmts
137 Likes
Answer
(a) Entry controlled loop
An entry-controlled loop checks the condition at the time of entry. Only if the condition is true, the program control enters the body of the loop. for and while loops are entry-controlled loops.
(b) Exit controlled loop
An exit-controlled loop checks the condition after executing its body. If the condition is true, loop will perform the next iteration otherwise program control will move out of the loop. do-while loop is an exit-controlled loop.
Answered By
80 Likes