#!/usr/bin/env /friends/bin/zigscript const std = @import("std"); const p = std.debug.warn; pub fn main() void { var i:usize = 1; while (i <= 30) : (i += 1) { var buf:[16]u8 = undefined; var fizzbuzz = if (i % 3 != 0 and i % 5 != 0) std.fmt.bufPrint(&buf, "{}", .{ i }) else std.fmt.bufPrint(&buf, "{}{}", .{ (if (i % 3 == 0) "Fizz" else ""), (if (i % 5 == 0) "Buzz" else "") }); p("{}\n", .{fizzbuzz}); } }