← Back to archive

Stdle #29 · scope · 2026-07-05

What does this Rust snippet output?

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

const PI: f64 = 3.0;
fn main() {
let r = 2.0;
let area = PI * r * r;
println!("{}", area);
}
Scope
4 attempts left

Answer & explanation