Question d’entretien chez IBM

Difference between entry controlled and exit controlled loops.

Réponse à la question d'entretien

Utilisateur anonyme

24 avr. 2025

Entry-controlled loops check the condition before the loop body is executed, potentially skipping the loop altogether if the condition is initially false. example is while loop. Exit-controlled loops, on the other hand, check the condition after the loop body is executed, ensuring the loop body is executed at least once. example is do-while loop