第 7 步:现在我们需要评估年份是否不能被 100 整除。这是条件 1b

  • ,拖出Remainder 。将calc_1b my_var方程式更改为year % 100
  • ,拖出Boolean Variablemy_var更改为condition_1b
  • True替换为以下逻辑语句: calc_1b != 0

!=表示“不等于” ,当左边的值不等于右边的值时,将返回True

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)