第 7 步:让我们测试一下!为了正确测试接受输入的程序,我们需要尝试提供不同的输入。

  • 点击运行并尝试输入可被 4 整除的年份(尝试使用 2020)。
  • 输入这个数字时, calc_1a的值是多少? condition_1a的值是多少?
  • 点击再次运行并输入不能被 4 整除的年份(尝试使用 2021)。
  • 现在calc_1acondition_1a的值是多少?点击提交接下来,当你准备好了!

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)