1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-09 16:26:53 +02: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:
mvalipour
2013-11-18 22:58:27 +00:00
parent ad848fe6ca
commit fbb7ea38a1

View File

@@ -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++;
}