Tell me briefly about for and while loop .
and give major difference between exit and entry control loop .
(only for armies and others will be reported)
class 9 computer
Answers
Answered by
1
Answer:
Exit controlled loop Entry controlled loop
It checks the condition after executing its body. If the condition is true, loop will perform the next iteration otherwise program control will move out of the loop. It checks the condition at the time of entry. Only if the condition is true, the program control enters the body of the loop.
The loop executes at least once even if the condition is false. Loop does not execute at all if the condition is false.
Example: do-while loop Example: for and while loops
Similar questions