complete variables 1 & 2

This commit is contained in:
Stirling Hostetter 2022-11-02 11:12:36 -05:00
parent 8b15739c25
commit c4230a2e3a
2 changed files with 2 additions and 6 deletions

View File

@ -2,9 +2,7 @@
// Make me compile! // Make me compile!
// Execute `rustlings hint variables1` or use the `hint` watch subcommand for a hint. // Execute `rustlings hint variables1` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
fn main() { fn main() {
x = 5; let x = 5;
println!("x has the value {}", x); println!("x has the value {}", x);
} }

View File

@ -1,10 +1,8 @@
// variables2.rs // variables2.rs
// Execute `rustlings hint variables2` or use the `hint` watch subcommand for a hint. // Execute `rustlings hint variables2` or use the `hint` watch subcommand for a hint.
// I AM NOT DONE
fn main() { fn main() {
let x; let x: i32 = 10;
if x == 10 { if x == 10 {
println!("x is ten!"); println!("x is ten!");
} else { } else {