Run Code  | Code Wall  | Users  | Misc  | Feedback  | About  | Login  | Theme  | Privacy 

compile java online

Language: Layout:
+ ] Show input
Compilation time: 0.44 sec, absolute running time: 0.15 sec, cpu time: 0.07 sec, memory peak: 10 Mb, absolute service time: 1.23 sec 
edit mode |  history
fibonacci(0) = 0
fibonacci(1) = 1
fibonacci(2) = 1
phi = (1/1) = 1.0
fibonacci(3) = 2
phi = (2/1) = 2.0
fibonacci(4) = 3
phi = (3/2) = 1.5
fibonacci(5) = 5
phi = (5/3) = 1.6666666666666667
fibonacci(6) = 8
phi = (8/5) = 1.6
fibonacci(7) = 13
phi = (13/8) = 1.625
fibonacci(8) = 21
phi = (21/13) = 1.6153846153846154
fibonacci(9) = 34
phi = (34/21) = 1.619047619047619
fibonacci(10) = 55
phi = (55/34) = 1.6176470588235294
fibonacci(11) = 89
phi = (89/55) = 1.6181818181818182
fibonacci(12) = 144
phi = (144/89) = 1.6179775280898876
fibonacci(13) = 233
phi = (233/144) = 1.6180555555555556
fibonacci(14) = 377
phi = (377/233) = 1.6180257510729614
fibonacci(15) = 610
phi = (610/377) = 1.6180371352785146
fibonacci(16) = 987
phi = (987/610) = 1.618032786885246
fibonacci(17) = 1597
phi = (1597/987) = 1.618034447821682
fibonacci(18) = 2584
phi = (2584/1597) = 1.6180338134001253
fibonacci(19) = 4181
phi = (4181/2584) = 1.618034055727554
fibonacci(20) = 6765
phi = (6765/4181) = 1.6180339631667064
fibonacci(21) = 10946
phi = (10946/6765) = 1.6180339985218033
fibonacci(22) = 17711
phi = (17711/10946) = 1.618033985017358
fibonacci(23) = 28657
phi = (28657/17711) = 1.6180339901755971
fibonacci(24) = 46368
phi = (46368/28657) = 1.618033988205325
fibonacci(25) = 75025
phi = (75025/46368) = 1.618033988957902
fibonacci(26) = 121393
phi = (121393/75025) = 1.6180339886704431
fibonacci(27) = 196418
phi = (196418/121393) = 1.6180339887802426
fibonacci(28) = 317811
phi = (317811/196418) = 1.618033988738303
fibonacci(29) = 514229
phi = (514229/317811) = 1.6180339887543225
fibonacci(30) = 832040
phi = (832040/514229) = 1.6180339887482036
fibonacci(31) = 1346269
phi = (1346269/832040) = 1.6180339887505408
fibonacci(32) = 2178309
phi = (2178309/1346269) = 1.6180339887496482
fibonacci(33) = 3524578
phi = (3524578/2178309) = 1.618033988749989
fibonacci(34) = 5702887
phi = (5702887/3524578) = 1.618033988749859
fibonacci(35) = 9227465
phi = (9227465/5702887) = 1.6180339887499087
fibonacci(36) = 14930352
phi = (14930352/9227465) = 1.6180339887498896
fibonacci(37) = 24157817
phi = (24157817/14930352) = 1.618033988749897
fibonacci(38) = 39088169
phi = (39088169/24157817) = 1.618033988749894
fibonacci(39) = 63245986