Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
11
Task/Fibonacci-sequence/Lingo/fibonacci-sequence-2.lingo
Normal file
11
Task/Fibonacci-sequence/Lingo/fibonacci-sequence-2.lingo
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
on fib (n)
|
||||
if n<2 then return n
|
||||
fibPrev = 0
|
||||
fib = 1
|
||||
repeat with i = 2 to n
|
||||
tmp = fib
|
||||
fib = fib + fibPrev
|
||||
fibPrev = tmp
|
||||
end repeat
|
||||
return fib
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue