Search:

Type: Posts; User: helloworld922

Search: Search took 0.10 seconds.

  1. Replies
    7
    Views
    2,382

    [SOLVED] Re: Using a For loop for repetition

    Normally, I would discourage the use of break/continue statements used for something that could easily be fixed by changing the conditions. The reason is these statements (especially breaking to a...
  2. Replies
    7
    Views
    2,382

    [SOLVED] Re: Using a For loop for repetition

    Actually, as long as the condition is true the for loop will keep running. This can lead to some very interesting for-loops.

    for (int i = 5; i >= 0; --i) // a for loop which counts down
    {}
    int...
Results 1 to 2 of 2