#!/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; var fizzbuzz = std.fmt.bufPrint(&buf, "{}{}", .{ fizz, buzz }); if (fizzbuzz.len == 0) { fizzbuzz = std.fmt.bufPrint(&buf, "{}", i); } p("{}\n", .{fizzbuzz}); } }