mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 17:41:41 +00:00
Fix while loop iterator incorrect count
The while loop is repeated 100 times not 99 times. 0~99 inclusive.
This commit is contained in:
parent
ad848fe6ca
commit
fbb7ea38a1
@ -233,7 +233,7 @@ on a new line! ""Wow!"", the masses cried";
|
||||
int fooWhile = 0;
|
||||
while (fooWhile < 100)
|
||||
{
|
||||
//Iterated 99 times, fooWhile 0->99
|
||||
//Iterated 100 times, fooWhile 0->99
|
||||
fooWhile++;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user