3 lines
72 B
Crystal
3 lines
72 B
Crystal
def fibBinet(n)
|
|
(((5 ** 0.5 + 1) / 2) ** n / 5 ** 0.5).round.to_i
|
|
end
|