langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 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