If you're seeing this message, it means we're having trouble loading external resources on our website.
如果你被网页过滤器挡住,请确保域名*.kastatic.org 和 *.kasandbox.org 没有被阻止.
要登录及使用可汗学院的所有功能,请在您的浏览器中启用 JavaScript.
mgAmounts ← [50, 230, 63, 98, 80, 120, 71, 158, 41] bestAmounts ← [] mgPerDay ← 360 mgMin ← mgPerDay * 0.3 FOR EACH mgAmount IN mgAmounts { IF (mgAmount ≥ mgMin) { <缺失的代码> } }
<缺失的代码>
APPEND(bestAmounts, mgAmount)
APPEND(mgAmounts, mgAmount)
INSERT(bestAmounts, mgAmounts)
INSERT(mgAmounts, mgAmount)
INSERT(bestAmounts, mgAmount)
APPEND(bestAmounts, mgAmounts)
a ← expression
expression
a
list ← [value1, value2, value3]
APPEND(list, item)
item
list
INSERT(list, index, item)
index
REMOVE(list, index)
FOR EACH value IN list { <instructions> }
value
instructions
IF (<condition>) { <instructions 1> } ELSE { <instructions 2> }
a = b
a ≠ b
a > b
a < b
a ≥ b
a ≤ b