← Back to archive

Stdle #22 · comparisons · 2026-06-28

What does this Rust snippet output?

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

fn main() {
let n = 100;
let s = match n {
0 => "zero",
1..=9 => "ones",
10..=99 => "tens",
_ => "huge",
};
println!("{}", s);
}
Comparisons
4 attempts left

Answer & explanation