第5步:在月球上,物体的重量只有在地球上的16%!

得到一个数字的16%:将16的小数点向左移动2位,得到0.16。然后用数字乘以0.16。

  • 将函数内部的浮点变量名称更改为 moon_weight。
  • 将值更改为 earth_weight * 0.16。

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)