0
What is the difference between while loop and do while loop. How can we know where we have to use while and do while loop
where to use while and where to use do while any example
2 ответов
+ 3
a do-while loop will execute the code block at least once regardless of whether or not the condition is met, useful for when you want something done once even if the condition might not be met