项目作者: rcvenkata
项目描述 :
Recursive algorithm to calculate fibonacci numbers for an user input integer.
高级语言: Go
项目地址: git://github.com/rcvenkata/Fibonacci-number.git
Fibonacci numbers/sequence
Introduction
The mathematical equation describing it is
Xn+2= Xn+1 + Xn
Usage
1. Download the .go file
2. Use shell/bash to navigate to the .go file directory
3. Build the .go file using the below command
$ go build
4. Use the built executable as shown below to execute
$ ./Fibonacci-number-master
5. When prompted enter the desired integer for which fibonacci number needs to be calculated (e.g., 30 as shown below)
$ For what integer you need to calculate Fibonacci number?
30
References
https://en.wikipedia.org/wiki/Fibonacci_number
https://www.livescience.com/37470-fibonacci-sequence.html