Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Loops-Foreach/SAS/loops-foreach.sas
Normal file
11
Task/Loops-Foreach/SAS/loops-foreach.sas
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
/* Initialize an array with integers 1 to 10, and print their sum */
|
||||
data _null_;
|
||||
array a a1-a10;
|
||||
n=1;
|
||||
do over a;
|
||||
a=n;
|
||||
n=n+1;
|
||||
end;
|
||||
s=sum(of a{*});
|
||||
put s;
|
||||
run;
|
||||
Loading…
Add table
Add a link
Reference in a new issue