Difference between For Loop and While Loop in Small Basic
Answers
Answered by
6
The do while loops are control flow statements, they execute a block of code at least once and then the iteration of loops depends on the condition which is checked at the bottom of the loop, They are best to use when you want at least once the loop to be executed
The most important difference between while and do-while is that in do-While, the block of code is executed at least once; ie, the do-while loop runs at least once, even though the condition given is false. This means that while is Entry Controlled and do-while is Exit Controlled.
The most important difference between while and do-while is that in do-While, the block of code is executed at least once; ie, the do-while loop runs at least once, even though the condition given is false. This means that while is Entry Controlled and do-while is Exit Controlled.
Answered by
2
The most important difference between while and do-while is that in do-While, the block of code is executed at least once; ie, the do-while loop runs at least once, even though the condition given is false. This means that while is Entry Controlled and do-while is Exit Controlled.
Similar questions