STEP 6: Next we'll use a for loop to give our friend a whole row of presents! First we need to create a variable.

  • In LOGIC, click on . Drag out Integer Variable. Drop it at the bottom of your program OUTSIDE the loop.
  • In and drag out Variable Display. Drop it at the bottom of your program.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)