wrapped up variables

This commit is contained in:
Jeremy Hager 2023-02-10 19:56:47 -08:00
parent 3d4d787304
commit 0a27e46efe
2 changed files with 4 additions and 4 deletions

View File

@ -1,11 +1,11 @@
// variables5.rs
// Execute `rustlings hint variables5` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
fn main() {
let number = "T-H-R-E-E"; // don't change this line
println!("Spell a Number : {}", number);
number = 3; // don't rename this variable
let number = 3; // don't rename this variable
println!("Number plus two is : {}", number + 2);
}

View File

@ -1,9 +1,9 @@
// variables6.rs
// Execute `rustlings hint variables6` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
const NUMBER = 3;
const NUMBER:i32 = 3;
fn main() {
println!("Number {}", NUMBER);
}