2015-11-24 14:33:16 +01:00
|
|
|
def fibo( n)
|
|
|
|
a = 0
|
|
|
|
b = 1
|
|
|
|
i = 1
|
|
|
|
while( i < n ) do
|
|
|
|
result = a + b
|
|
|
|
a = b
|
|
|
|
b = result
|
|
|
|
i+= 1
|
|
|
|
end
|
|
|
|
return result
|
|
|
|
end
|
|
|
|
|
2019-07-31 20:18:03 +02:00
|
|
|
counter = 50000
|
2015-11-24 14:33:16 +01:00
|
|
|
|
|
|
|
while(counter > 0) do
|
2019-07-31 20:18:03 +02:00
|
|
|
fibo(40)
|
2015-11-24 14:33:16 +01:00
|
|
|
counter -= 1
|
|
|
|
end
|