moved with better name
This commit is contained in:
12
stash/fibo_times.ruby
Normal file
12
stash/fibo_times.ruby
Normal file
@@ -0,0 +1,12 @@
|
||||
def fibonaccit(n)
|
||||
a = 0
|
||||
b = 1
|
||||
(n-1).times do
|
||||
tmp = a
|
||||
a = b
|
||||
b = tmp + b
|
||||
puts b
|
||||
end
|
||||
end
|
||||
|
||||
fibonaccit( 10 )
|
Reference in New Issue
Block a user