fibonacci.ion 207 B

1234567891011121314
  1. fn fib n
  2. let output previous = 0 1
  3. for _ in 0..$n
  4. let temp = $output
  5. let output += $previous
  6. let previous = $temp
  7. end
  8. echo $n $output
  9. end
  10. for i in 0..184
  11. fib $i
  12. end