← Back to archive

Stdle #77 · integers · 2026-08-22

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 = 200;
const y: u8 = 100;
std.debug.print("{d}\n", .{x -% y});
std.debug.print("{d}\n", .{y -% x});
}
Integers
2 lines
4 attempts left

Answer & explanation