Files
rustlings/solutions/01_variables/variables1.rs
2026-01-07 20:11:02 +01:00

7 lines
122 B
Rust

fn main() {
// Declaring variables requires the `let` keyword.
let x = 5;
println!("x has the value {x}");
}