+ 1

When to use while loop during coding??

When to use while loop?

14th Jun 2016, 7:20 PM
jwjajajsn
6 odpowiedzi
+ 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)
14th Jun 2016, 8:26 PM
Robert Șofrac
Robert Șofrac - avatar
+ 1
while is a preconditioned loop, then you use this loop when you have to control an espressione before the loop is executed
14th Jun 2016, 9:01 PM
Tommaso
0
when you need to repeat things multiple times having just breaking condition....
15th Jun 2016, 2:35 AM
Dev!L
Dev!L - avatar
0
When ever you want to I think (but it might lead to a bug sometimes)
3rd Jul 2016, 8:45 PM
sophie
sophie - avatar
0
Loops are for fun right?
3rd Jul 2016, 8:45 PM
sophie
sophie - avatar
- 5
when you need it
14th Jun 2016, 8:06 PM
Davo Hakobyan
Davo  Hakobyan - avatar