Right, but if n = -20
Then i < n will fail as 0 < -20 evaluates to false. Thus i will actually just equal 0, and "x" will be printing 0 times.
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: Alterah Search: Search took 0.03 seconds.
Results 1 to 2 of 2
|
Click Here to Expand Forum to Full Width |