STEP 11: Now let's create a variable to store the area of the triangle.

  • In , drag out Integer Variable. Drop it on the line right BELOW triangle_height.
  • Change its name to triangle_area.

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)