If you're seeing this message, it means we're having trouble loading external resources on our website.

如果你被网页过滤器挡住,请确保域名*.kastatic.org*.kasandbox.org 没有被阻止.

主要内容

带返回值的过程

您可能需要:计算器

问题

小明正在写一个程序来帮助他计算他在体育馆做了多少运动。
这个程序calcSwimMeters根据给定的泳池长度和游泳圈数来返回游泳的米数。
PROCEDURE calcSwimMeters(poolLength, numLaps)
{
   lapLength ← poolLength * 2
   RETURN lapLength * numLaps
}
然后小米运行了这行代码:
MetersSwum ← calcSwimYards(25, 10)
存储在MetersSwum的值是多少呢?
选出正确答案:
🤔