+ 1

Where we use Do...while?

30th Mar 2017, 8:03 AM
Jualo Games
Jualo Games - avatar
4 Answers
+ 2
we should use do while loop when we need to run the loop at least once and don't know how much time the loop should be run (which depends only on the condition).... for loop is used when we know how many times we need to run the loop...
30th Mar 2017, 11:02 AM
Shiv Mishra🎸
Shiv Mishra🎸 - avatar
0
where you need to repeat loop for some number of times
30th Mar 2017, 8:10 AM
Ivan Kerepčić
Ivan Kerepčić - avatar
0
Do While is used when you need to run the loop at least once, since the condition check is done at the end of the loop.
30th Mar 2017, 9:11 AM
Hassie
Hassie - avatar
0
Hassie... Doesn't a regular while loop do that?
30th Mar 2017, 9:49 AM
LordHill
LordHill - avatar