CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Alterah

Search: Search took 0.03 seconds.

  1. Replies
    68
    Views
    58,748

    Re: Fun C++ Problem

    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.
  2. Replies
    68
    Views
    58,748

    Re: Fun C++ Problem

    Got all three. Surprisingly I don't think the third solution took me as long as the second solution. :blush:
Results 1 to 2 of 2





Click Here to Expand Forum to Full Width

Featured