Across
- 2. Goal: Loop 99 times - for (i = 0; _____; ++i) {..}
- 4. Goal: Loop 20 times - for (____; i < 20; ++i) {..}
- 6. Input: 4 10 1 6 3, before the loop, what is valuesSum?
- 7. (while/for) Iterate as long as user-entered char c is not 'q'.
- 8. Loop with three parts: initialization, expression, update
- 9. [++i] When i increments before evaluation
- 10. How many times will this loop iterate? for (i = 0; i < 8; ++i) {...}
- 12. [i++] When i increments after evaluation
- 14. What are the values of i for each iteration of: for (i = 0; i < 6; ++i) {...}
Down
- 1. (2 word) When you want to iterate a specific number of times, what should you use?
- 2. ++i or i = i + 1 is known as the ______ operator
- 3. --i is known as the ________ operator
- 4. Goal: Loop numYears times - for (i = 0; _____; ++i) {..}
- 5. (while/for) Iterate until the values of x and y are equal, where x and y are changed in the loop body.
- 11. (while/for) Iterate 100 times.
- 13. Goal: Loop 10 times - for (i = 0; _____; ++i) {..}