This is a general programming question. If you know your variables beforehand you can just create separate lists of equal length and go through by indexing. A simple example in Octave is below.
Var1List = [5,15];
Var2List = [6,6];
Var3List = [9,90];
% Add code to check list lengths are equal
NumberOfRuns = length(Var1List)
for k = 1:NumberOfRuns
printf('%i, %i, %i
',Var1List(k),Var2List(k),Var3List(k))
end