第9步:使用三角形参数中的变量。

记住,我们要使用变量名称,而不是它们的值。

  • 用变量 triangle_width 替换当前 my_triangle 的宽度参数。
  • 用变量 triangle_height 替换当前 my_triangle 的高度参数。

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
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)