Pull to refresh

Comments 1

def fib(x)
a, b=0,1
x.times{a, b=b, a+b}
a
end

в times не обязательно |i|
и return писать не обяхательно
Sign up to leave a comment.

Articles