gistlib
other ruby categories
fibonacci-sequence code snippets in ruby
write this program such that the 10th fibonacci term is 89: `def fibo(n) return n if n < 2 && n > 0 a, b = 0, 1 for k in 1..n a, b = b, a + b end a end` in ruby
gistlib
by LogSnag