+ 1

Can domeone pls explain how "while" += -=works

I dont understand loops

3rd Jul 2022, 1:51 PM
I'm Bob PL
I'm Bob PL - avatar
1 Answer
+ 3
-> In while loop, condition is evaluated first and if it returns true then the statements inside while loop execute, this happens repeatedly until the condition returns false. When condition returns false, the control comes out of loop and jumps to the next statement in the program after while loop.
3rd Jul 2022, 2:07 PM
Mihir Lalwani
Mihir Lalwani - avatar