#!/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) { const fizz = if (i % 3 == 0) "Fizz" else ""; const buzz = if (i % 5 == 0) "Buzz" else ""; var buf:[16]u8 = undefined; const slice = buf[0..] const fizzbuzz = try std.fmt.bufPrint(slice, "{}{}", .{ fizz, buzz }); p("{}\n", .{fizzbuzz}); } }