← Back to archive

Stdle #179 · integers · 2026-12-02

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 {
var x: u8 = 250;
x +%= 10;
std.debug.print("{d}\n", .{x});
}
Integers
4 attempts left

Answer & explanation