DEMO #3: Let's see how to place our commands INSIDE the if statement!

Commands in an if-statement MUST be indented 4 spaces to make your program run.

  • Click Run and follow the directions on stage to see how to properly indent your code.
  • Once you're finished, click Submit and Next to move on.

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)