Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,11 @@
data fib;
a=0;
b=1;
do n=0 to 20;
f=a;
output;
a=b;
b=f+a;
end;
keep n f;
run;

View file

@ -0,0 +1,14 @@
options cmplib=work.f;
proc fcmp outlib=work.f.p;
function fib(n);
if n = 0 or n = 1
then return(1);
else return(fib(n - 2) + fib(n - 1));
endsub;
run;
data _null_;
x = fib(5);
put 'fib(5) = ' x;
run;