← Back to archive

Stdle #28 · numbers · 2026-07-04

What does this Rust snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

fn main() {
let q = -7i32 / 2;
let r = -7i32 % 2;
println!("{} {}", q, r);
}
Numbers
4 attempts left

Answer & explanation