Difference between event controlled and counter controlled loops
Answers
Answered by
5
wait for some time iwill check out this one iwill send you
Answered by
7
Event controlled loop
The statement which is being executed within the loop is known as the body of the loop. Three basic steps have to be done for a loop to operate properly. Before the while statement is executed for the first time the variables in the counter or event have to be set or initialized.
Counter controlled loop
In this the count is kept in a variable called a counter or an index. The loop ends when the index reaches the loop bound. The number of repetitions is known before the loop begins executing so count controlled repetition is also called definite repetition.
Similar questions