+ 1
Can domeone pls explain how "while" += -=works
I dont understand loops
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.