13 lines
333 B
Rust
13 lines
333 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 : {}", number);
|
|
let number = &3.to_string();
|
|
println!(
|
|
"Number plus two is : {}",
|
|
number.parse::<i32>().unwrap() + 2
|
|
);
|
|
}
|