01.07.2017, 15:11
Quote:
"TeamACount" never actually changes value within the loop body and as such the loop runs forever. A while-loop runs until the expression evaluates to false. What you want to use here is likely just a simple if-statement because I see no reason to use a loop at all.
|
Quote:
while(TeamACount> = 0) means execute the part of code inside its block till teamAcount is greater than or equal to zero.This process will only get stops when TeamACount is less than zero.And you have no statement mentioning its update. Fix the logic there.
Edit: This forum needs something to mention about newer posts while typing , seriously -_- |
So, "while" will stop below zero?
Hehehe