Run Code  | API  | Code Wall  | Users  | Misc  | Feedback  | Login  | Theme  | Privacy  | Patreon 

fibonacci sequence generator and golden ratio

Language: Layout:
+ ] Show input
Absolute running time: 0.3 sec, cpu time: 0.26 sec, memory peak: 6 Mb, absolute service time: 0,31 sec 
fork mode |  history  | discussion
1+1=2, ratio: 1.0
2+1=3, ratio: 2.0
3+2=5, ratio: 1.5
5+3=8, ratio: 1.666
8+5=13, ratio: 1.6
13+8=21, ratio: 1.625
21+13=34, ratio: 1.615
34+21=55, ratio: 1.619
55+34=89, ratio: 1.617
89+55=144, ratio: 1.618
144+89=233, ratio: 1.617
233+144=377, ratio: 1.618
377+233=610, ratio: 1.618
610+377=987, ratio: 1.618
987+610=1597, ratio: 1.618
1597+987=2584, ratio: 1.618
2584+1597=4181, ratio: 1.618
4181+2584=6765, ratio: 1.618