← Back to archive

Stdle #89 · math · 2026-09-03

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: i32 = -42;
std.debug.print("{d}\n", .{@abs(x)});
}
Math
4 attempts left

Answer & explanation