STEP 8: Now let's start our triangle. You'll use the LOGIC tab of the toolkit for this activity.

  • Go to and drag out Integer Variable. Drop it on any line ABOVE my_triangle.
  • Name it triangle_width.
  • In , drag out another Integer Variable. Drop it on the line right BELOW triangle_width.
  • Name it triangle_height.

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)