-20 + 20 = 0.
Take a look at the for loop, and the terminating condition. Since on the 20th iteration:
i + n =
-20 + 20 =
0 =
false
The loop terminates.
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: Paul McKenzie Search: Search took 3.15 seconds.
Results 1 to 4 of 4
|
Click Here to Expand Forum to Full Width |