Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -1,9 +1,9 @@
|
|||
/* Form the n-th Fibonacci number, n > 1. */
|
||||
get list (n);
|
||||
f1 = 0; f2, f3 = 1;
|
||||
do i = 1 to n-2;
|
||||
get list(n);
|
||||
f1 = 0; f2 = 1;
|
||||
do i = 2 to n;
|
||||
f3 = f1 + f2;
|
||||
put skip edit('fibo(',i,')=',f3)(a,f(5),a,f(5));
|
||||
f1 = f2;
|
||||
f2 = f3;
|
||||
end;
|
||||
put skip list (f3);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue