state the difference between entry and exit control loop? give one example of each.
Answers
Answered by
1
Entry controlled loop is the one in which the condition is tested before entering the loop body. It may not be executed even once. For eg. for and while loop
Exit controlled loop is the one in which the condition is tested after entering the loop body. It may not be executed even once. For eg. do while
Exit controlled loop is the one in which the condition is tested after entering the loop body. It may not be executed even once. For eg. do while
Vintage:
plz mark brainliest
Answered by
1
Entry controlled loop-
- This loop will not execute at all, if the condition is not satisfied.
- It check the condition first and then execution begins.
Exit controlled loop-
- This loop will execute at least once.
- It check the condition only after execution of the loop.
Similar questions
Social Sciences,
7 months ago
Math,
7 months ago
Chemistry,
7 months ago
Social Sciences,
1 year ago
Social Sciences,
1 year ago