rubyx/test/mains/source/fibo__8.rb
Torsten 00bf38a0e6 updating benchmarks
on the new machine, consistent
not rubyx yet
2019-07-23 20:14:28 +03:00

17 lines
209 B
Ruby

class Space
def main(arg)
n = 10
a = 0
b = 1
i = 1
while( i < n )
result = a + b
a = b
b = result
i = i + 1
end
return result
end
end
#Space.new.main(1)