O'Reilly logo
  • Rate Gain thinks this is interesting:

Convert this while-loop to a function that you can call, and replace 6 in the test (i < 6) with a variable.