#!/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:[16]u8 = [_]u8{0} ** 16; var fizzbuzz = std.fmt.bufPrint(&buf, "{}{}", .{ fizz, buzz }); std.debug.warn("{}\n", .{ fizzbuzz }); } }