Artifact f9594a17e67c6a8daea715fe8a3d0707de6b2052:
- File tests/langbench/fib.rb — part of check-in [69b737f5a1] at 2016-04-19 20:35:49 on branch little — Fork of Tcl used in the "Little" project. http://www.mcvoy.com/lm/little/index.html (user: dgp, size: 135) [annotate] [blame] [check-ins using]
def fib(n) if n < 2 n else fib(n-1) + fib(n-2) end end 30.times do |i| puts "n=#{i} => #{fib(i)}" end