what is entry control loop
Answers
Answered by
7
An entry control loop check the condition at the time of entry and is condition or expression become true then controll transfers into the body of the loop.
Answered by
1
Hi,
What is entry control loop?
The loop which has a condition check at the entrance of the loop, the loop executes only and only if the condition is satisfied is called as entry control loop.
For Example:
While loop
For loop
let's take an example of while loop
var x = 0;
while (x < 10) {
console.log(x);
x++;
}
in above while loop program we are checking if x is less than ten or not in the beginning of the program, at this moment x is less than 10 so loop will execute. So loop will execute only if x is less than 10 otherwise loop will exit.
Similar questions