1
0
mirror of https://github.com/rust-lang/rustlings.git synced 2025-06-06 23:36:37 +02:00

9 lines
275 B
Rust
Raw Normal View History

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