| Contact PSVM (Q & A) | Notes Below Audio | [toc] [prev] Slide 4 of 12 [next] |
|
|
| 1, 2, 3, [4 (top)], 5, 6, 7, 8, 9, 10, 11, 12, [Lab] |
|
Notes for Slide 04 There are two statements required in a for-loop, and at least one additional action statement (so that the loop does something). Notice on the slide that nm is used instead of name because it would not fit on the slide. You might be wondering why the for-statement requires the same name to appear three times: this is actually just one example of a for-loop. In later lessons you will see that it is possible to write a for-statement that does not use the same name three times. 1, 2, 3, [4 (top)], 5, 6, 7, 8, 9, 10, 11, 12, [Lab] |