Why are for and while loops called entry controlled loops?
Answers
Answered by
142
Answer:
Entry Controlled Loop
An entry control loop, controls entry to the loop and thus why it is referred as entry control loop. An entry control loop checks the condition at the time of entry and if the condition or expression (statement that has value) becomes true then control transfers into the body of the loop.
Answered by
53
Answer:
If Test condition is false, loop body will be executed once. for loop and while loop are the examples of Entry Controlled Loop. do while loop is the example of Exit controlled loop. Entry Controlled Loops are used when checking of test condition is mandatory before executing loop body.
Similar questions