STEP 2: Let's keep track of the score!

  • Go to and drag Integer Variable into your program.
  • Change the variable name to score and the value to 0.
  • From , drag in Variable Display.
  • Change the display name to score_board, and change the variable to score.

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)