RosettaCodeData/Task/Loops-Continue/Octave/loops-continue.octave
Ingy döt Net d066446780 langs a-z
2013-04-10 22:43:41 -07:00

10 lines
152 B
Text

v = "";
for i = 1:10
v = sprintf("%s%d", v, i);
if ( mod(i, 5) == 0 )
disp(v)
v = "";
continue
endif
v = sprintf("%s, ", v);
endfor