+ 1
When to use while loop during coding??
When to use while loop?
6 Respuestas
+ 3
usually it is used as a replacement for the for loop. You use it when you don`t know how much you need to repeat a set of operations (such as program running until hitting number 0)
+ 1
while is a preconditioned loop, then you use this loop when you have to control an espressione before the loop is executed
0
when you need to repeat things multiple times having just breaking condition....
0
When ever you want to I think (but it might lead to a bug sometimes)
0
Loops are for fun right?
- 5
when you need it