Search:

Type: Posts; User: pbrockway2

Search: Search took 0.13 seconds.

  1. Replies
    3
    Views
    2,743

    Re: For loop with equation?

    You're welcome. The semicolon "ends" the for loop which is saying "for <whatever> do nothing". Then the other statements execute outside the loop.
  2. Replies
    3
    Views
    2,743

    Re: For loop with equation?

    Use braces with the for loop. And remove the semicolon at the end of the line with "for" in it. Ie all your for loops should look like



    for(/* etc */) {
    // code here
    }


    If your code...
Results 1 to 2 of 2