0
What is the two main difference between while loop and do-while loop?
3 Respostas
+ 7
(while) - entry control loop i.e. starts executing if the condition is initially true.
(do while) - exit control loop i.e. executes and checks the condition. That's why a do while loop always executes at least once.
+ 1
the main difference is that the do-while, executes the block of code at least once, even if the condition is false.
0
ok