rustlings/exercises/variables/variables5.rs
2021-04-06 15:30:55 +03:00

12 lines
338 B
Rust

// variables5.rs
// Make me compile! Execute the command `rustlings hint variables5` if you want a hint :)
fn main() {
let mut number = "T-H-R-E-E";
println!("Spell a Number (string): {}", number);
let number = 3;
println!("new number (type int) is : {}", number);
println!("Number plus two is : {}", number + 2);
}