rustlings/exercises/variables/variables5.rs
2022-01-19 21:07:06 -04:00

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);
}