Loops/Do-while

fn main() {
    let v = 0;
    do {
       println "{++v}";
    } while v % 6;
}

Output:

1
2
3
4
5
6

Attribution: This is a community solution for the Rosetta Code task Loops/Do-while in Zen C.

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