This repository has been archived on 2025-01-25. You can view files and clone it, but cannot push or open issues or pull requests.

10 lines
234 B
Rust

fn main() {
// In Rust, variables are immutable by default.
// Adding the `mut` keyword after `let` makes the declared variable mutable.
let mut x = 3;
println!("Number {x}");
x = 5;
println!("Number {x}");
}