Add solutions to functions

This commit is contained in:
mo8it
2024-05-21 02:43:18 +02:00
parent 0f4c42d54e
commit d0b843d6c4
13 changed files with 97 additions and 41 deletions
+1 -1
View File
@@ -4,6 +4,6 @@ fn main() {
let mut x = 3;
println!("Number {x}");
x = 5; // Don't change this line
x = 5;
println!("Number {x}");
}
+1 -1
View File
@@ -1,5 +1,5 @@
fn main() {
let number = "T-H-R-E-E"; // Don't change this line
let number = "T-H-R-E-E";
println!("Spell a number: {}", number);
// Using variable shadowing