STEP 3: Let's set up the timer.

  • Go to and drag Integer Variable into your program.
  • Change the name to timer and change the value to 30.
  • From , drag Variable Display into your program.
  • Change the display name to timer_display and change the variable to timer.

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)