posted 11 years ago
I still get confused with understanding what values the variables in a for loop have taken on after one iteration. Here is an example:
I am confused by the xcurrent variable. Why is it necessary to include at the end of the loop body? I.e. does the xstart go back to its original value after one iteration? Or does it maintain the xstart value that it was given at the end of the loop body and carry that into the next iteration? I hope this makes sense.
Thank you!
Natasha