你理解了吗?让我们再看看这些符号!我们使用 if 语句来测试两个事物是否相等,但是我们也可以使用它们来比较值。

  • 点击 运行 并猜测数字。然后使用代码来回答问题。

大于:如果你猜测的数字 > 随机数,那么精灵说: "Nope! Too high!"

小于:如果你猜测的数字 < 随机数,那么精灵说: "Nope! Too low!"

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)