|
|
|
|
|
by emersonrsantos
2839 days ago
|
|
In Forth language would be: : fib 2dup + ;
2dup word duplicates n and n-1 elements and put it on the top of the stack.+ word takes n and n-1 elements from the stack and sum them. The result goes on top of the stack. Just start with 1 and 1 at the top of stack. |
|