Stdle #113 · control · 2026-09-27
What does this Zig snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
const std = @import("std");pub fn main() void { const x: u8 = 42; const label = switch (x) { 0...9 => "small", 10...99 => "medium", else => "big", }; std.debug.print("{s}\n", .{label});}Control Flow