题目描述
大家都知道斐波那契数列,现在要求输入一个整数n,请你输出斐波那契数列的第n项。
分类:数组
解法1:根据前两项计算第三项,然后更新前两项即可。
分类:数组
解法1:根据前两项计算第三项,然后更新前两项即可。
原文链接 http://blog.csdn.net/crazy__chen/article/details/44986495
原文链接 http://blog.csdn.net/crazy__chen/article/details/44986495