1
0
Fork 0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-01-15 00:00:03 +03:00
rustlings/solutions/01_variables/variables1.rs

7 lines
122 B
Rust
Raw Normal View History

2024-05-21 02:47:57 +03:00
fn main() {
// Declaring variables requires the `let` keyword.
let x = 5;
println!("x has the value {x}");
}