#!/usr/bin/env /friends/bin/zigscript const std = @import("std"); 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 = []u8{0} ** 16; const fizzbuzz = if (i % 3 != 0 and i % 5 != 0) std.fmt.bufPrint(&buf, "{}", .{ i }) else std.fmt.bufPrint(&buf, "{}{}", .{ fizz, buzz }); std.debug.warn("{}\n", .{ fizzbuzz }); } }