mirror of
https://github.com/rust-lang/rustlings.git
synced 2026-01-10 20:59:19 +00:00
13 lines
393 B
Rust
13 lines
393 B
Rust
// variables5.rs
|
|
// Make me compile! Execute the command `rustlings hint variables5` if you want a hint :)
|
|
|
|
// I AM NOT DONE
|
|
|
|
fn main() {
|
|
let number = "T-H-R-E-E"; // don't change this line
|
|
println!("Spell a Number : {}", number);
|
|
let number = 3;
|
|
// ### redefinition of variables is supported through new let statements.
|
|
println!("Number plus two is : {}", number + 2);
|
|
}
|