What do you mean by entry controlled and exit controlled loop ?Give suitable example for the same.
Answers
Answered by
0
in in the class of entry controlled loop the loop condition is tested before entering into the loop if the test condition evaluates to true the loop body is executed for and while loops do come in this class of loops , entry control loops are also known as top tested loop or pre tested loops.
now exit control loop or bottom tested loop or post tested loops ,in this kind of loop first execution is made and then the condition is checked that is first the loop body is executed and then the condition is evaluated so even if the condition is false the execution of the loop body which takes place for once.
do while loop is a loop of this category
now exit control loop or bottom tested loop or post tested loops ,in this kind of loop first execution is made and then the condition is checked that is first the loop body is executed and then the condition is evaluated so even if the condition is false the execution of the loop body which takes place for once.
do while loop is a loop of this category
Similar questions