difference between while and do-while loop ?
Answers
Answered by
5
Answer:
do-while loop is similar to while loop, however there is a difference between them: In while loop, condition is evaluated first and then the statements inside loop body gets executed, on the other hand in do-while loop, statements inside do-while gets executed first and then thecondition is evaluated.
Answered by
52
✒
Difference between while and do-while loop ?
★ ★
Here, the main difference between a while loop and do while loop is that while loop check condition before iteration of the loop...✍️
On the other hand, the do-while loop verifies the condition after the execution of the statements inside the loop...✍️
Furthermore, the while loop is known as the entry-controlled loop...✍️
☑
☑
Similar questions
Math,
3 months ago
Math,
3 months ago
Math,
6 months ago
Biology,
6 months ago
Social Sciences,
11 months ago