In the Fibonacci sequence, is fib(0) 0 or 1 ?

前端 未结 10 1780
南旧
南旧 2020-12-14 15:11

I\'m doing a task in a subject were fib(0) is defined to = 1. But that can\'t be right? fib(0) is 0?

Program with fib(0) = 1; spits out fib(4) = 5
Program w         


        
10条回答
提交回复
热议问题