← Back to archive

Stdle #84 · scope · 2026-08-29

What does this Rust snippet output?

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

fn main() {
let x: i32 = 8;
let x = x as f64 / 2.0;
println!("{}", x);
}
Scope
4 attempts left

Answer & explanation