4.5 For Loops

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