• 生成斐波那契序列之后,要从该序列中拿出最后两个元素计算对应的最大公约数。但最后几行代码:

        i := i - 1
        j := i - 1
        j := i - 1
        当始 (j != 0)
            tmp := i
            i := j
            j := tmp % j
        当终

    显然并没有从 s 中取任何数据进行最大公约数的计算。

    请修正。

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment