a good stab at array anf hash constants

This commit is contained in:
Torsten Ruger
2014-05-12 21:36:38 +03:00
parent 25a7c3ea68
commit fdb5dd4f67
14 changed files with 126 additions and 24 deletions

View File

@ -1,11 +1,11 @@
def fibonaccit(n)
a = 0
b = 1
while n > 1 do
while( n > 1 ) do
tmp = a
a = b
b = tmp + b
puts b
puts(b)
n = n - 1
end
end