RosettaCodeData/Task/Loops-For-with-a-specified-step/Zig/loops-for-with-a-specified-step.zig
2023-07-01 13:44:08 -04:00

8 lines
197 B
Zig

const std = @import("std");
pub fn main() !void {
const stdout_wr = std.io.getStdOut().writer();
var i: u8 = 1;
while (i < 10) : (i += 2)
try stdout_wr.print("{d}\n", .{i});
}