Loops/For with a specified step

fn main() {
    for i in 1..=19 step 2 { print "{i} "; }
    println "";
}

Output:

1 3 5 7 9 11 13 15 17 19

Attribution: This is a community solution for the Rosetta Code task Loops/For with a specified step in Zen C.

This article uses material from the Rosetta Code article Loops/For with a specified step, which is released under the GNU Free Documentation License 1.3. A list of the original authors can be found in the page history.