RosettaCodeData/Task/Loops-Foreach/MATLAB/loops-foreach-1.m
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

4 lines
139 B
Mathematica

list1 = [1,5,6,7,-7,-9];
for k = list1, % list1 must be a row vector (i.e. array of size 1xn)
printf('%i\n',k)
end;