← Back to archive

Stdle #65 · math · 2026-08-10

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

Answer & explanation