Returning Nth Fibonacci number the sequence?(返回第 N 个斐波那契数列?)
问题描述
我有一个关于课堂作业的问题,我需要知道如何使用迭代返回第 n 个斐波那契数列(不允许递归).
I have a question on my homework for class and I need to know how to return nth number of Fibonacci sequence using iteration (no recursion allowed).
我需要一些关于如何执行此操作的提示,以便更好地了解我做错了什么.我在我的 program.cs 中输出到控制台,因此在下面的代码中不存在.
I need some tips on how to do this so I can better understand what I am doing wrong. I output to the console in my program.cs, hence it being absent in the code below.
推荐答案
:)
这篇关于返回第 N 个斐波那契数列?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!