+
Skip to content

cpcdoy/Fibo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Fibo

Compute the sum of the first n even fibonacci numbers

Usage:

Computes the first n even numbers from the fibonacci sequence using 2 methods and compares their results.

Usage: fibonacci n

Args: - n: number (n > 0) of even fibonacci numbers to compute

Example usage:

$ ./fibonacci 6
Testing both methods: loops vs no loops
0: 0 0
1: 2 2
2: 2 2
3: 10 10
4: 10 10
5: 10 10
6: 10 10
Results: Outputs match 100 %
This is due to precision loss when using our second "no loops" method

About

Compute the sum of the first n even fibonacci numbers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载