| Contact PSVM (Q & A) | Notes Below Audio | [toc] [prev] Slide 9 of 18 [next] |
|
|
| 1, 2, 3, 4, 5, 6, 7, 8, [9 (top)], 10, 11, 12, 13, 14, 15, 16, 17, 18, [Lab] |
|
Notes for Slide 09 Two ways to store an int value into an int variable is to use a set-statement or an inputInt-statement. This slide shows visually what happens when the set-statement guess = 0; is run. The value 0 would remain in the guess variable until it is replaced with either another set-statement or an inputInt-statement. Actually, an inputInt-statement will wait for the user to enter input, so the value 0 would remain in the guess variable until an inputInt-statement is completed. 1, 2, 3, 4, 5, 6, 7, 8, [9 (top)], 10, 11, 12, 13, 14, 15, 16, 17, 18, [Lab] |