第10步:礼物靠得还是太近。 为了在它们之间创建更多的空间,我们将增加每次循环运行时 x 增加的数量。

记住,我们使用 + = 为变量添加值。寻找使用该对符号的代码行。

  • 在 for loop 中找到添加 x 值的指令。
  • 更改指令,向 x 添加 75 (替换 50)。

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)