fib.rb
# Calculate the n^th Fibonacci number.
Calculate the n^th Fibonacci number.
Calculate the n^th Fibonacci number .
def fib(n)
  if n < 2
    return n
  else
    return fib(n - 1) + fib(n - 2)
  end
end
def fib ( n ) if n < 2 return n else return fib ( n - 1 ) + fib ( n - 2 ) end end
Calculate the n^th Fibonacci number.
Calculate the n^th Fibonacci number .
n