RosettaCodeData/Task/Department-numbers/Zig/department-numbers-4.zig
2023-07-01 19:04:52 -04:00

14 lines
412 B
Zig

pub fn main() !void {
const stdout = std.io.getStdOut().writer();
try stdout.writeAll("Police Sanitation Fire\n");
try stdout.writeAll("------ ---------- ----\n");
var it = SolutionIterator{};
while (it.next()) |solution| {
try stdout.print(
" {d} {d} {d}\n",
.{ solution.police, solution.sanitation, solution.fire },
);
}
}