fork(1) download
  1. def fib(n):
  2. a, b = 0.0, 1.0
  3. while a < n:
  4. print((a+b)/b)
  5. a, b = b, a+b
  6. fib(100)
Success #stdin #stdout 0s 23296KB
stdin
Standard input is empty
stdout
1.0
2.0
1.5
1.66666666667
1.6
1.625
1.61538461538
1.61904761905
1.61764705882
1.61818181818
1.61797752809
1.61805555556