RosettaCodeData/Task/Loops-For-with-a-specified-step/Chapel/loops-for-with-a-specified-step.chpl
2026-04-30 12:34:36 -04:00

6 lines
100 B
Chapel

// Can be set on commandline via --N=x
config const N = 3;
for i in 1 .. 10 by N {
writeln(i);
}