Complete variables5 & 6

This commit is contained in:
Stirling Hostetter 2022-11-02 11:28:02 -05:00
parent 76bf35992e
commit 75ddd05374
2 changed files with 2 additions and 6 deletions

View File

@ -1,11 +1,9 @@
// 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,7 @@
// 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 = 150;
fn main() {
println!("Number {}", NUMBER);
}