1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2024-12-23 19:58:08 -05:00
rustlings/exercises/01_variables/variables5.rs

9 lines
277 B
Rust
Raw Normal View History

fn main() {
2024-05-20 19:47:57 -04:00
let number = "T-H-R-E-E"; // Don't change this line
println!("Spell a number: {}", number);
2024-06-14 07:32:37 -04:00
// TODO: Fix the compiler error by changing the line below without renaming the variable.
2024-05-20 19:47:57 -04:00
number = 3;
println!("Number plus two is: {}", number + 2);
}