RosettaCodeData/Task/Loop-over-multiple-arrays-simultaneously/Sather/loop-over-multiple-arrays-simultaneously.sa

11 lines
226 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
class MAIN is
main is
a :ARRAY{STR} := |"a", "b", "c"|;
b :ARRAY{STR} := |"A", "B", "C"|;
c :ARRAY{STR} := |"1", "2", "3"|;
loop i ::= 0.upto!(2);
#OUT + a[i] + b[i] + c[i] + "\n";
end;
end;
end;