remove obvious ruby variables

This commit is contained in:
Dan Ballard 2011-04-04 09:24:53 -07:00
parent 2d574d4514
commit 589397355b
1 changed files with 1 additions and 4 deletions

View File

@ -7,10 +7,7 @@ def sum(last, current, sum)
if current % 2 == 0
sum += current
end
tmp = current
current += last
last = tmp
sum(last, current, sum)
sum(current,last+ current, sum)
end
puts sum(0, 1, 0)