The Question : Give two differences between while loop and do while loop
Solution for the question :
while loop 1. A while loop is an entry controlled loop 2. Body of loop may never be executed 3. The variables in the test condition must be initialized prior to entering the loop structure. do while loop 1. A do-while loop is an exit control loop – 2. Body of loop is executed at least once 3. It is not necessary to initialize the variables in the test condition prior to entering the loop structure.
The correct answer to the question is researched by our moderators and shared with you. You can give feedback by commenting for the answers you think are wrong.