+ 6

Why this code does not work without line 6? [Not my own code,just trying to study it].

https://code.sololearn.com/cC0SoNWYLwHP/?ref=app

1st Dec 2020, 6:16 PM
Angry Student(Docvad)
Angry Student(Docvad) - avatar
2 Antworten
+ 1
The while loop runs as long as b > 0. To break out of the loop, we need to modify b inside the loop so b will eventually become <= 0
1st Dec 2020, 6:35 PM
Lisa
Lisa - avatar