rustlings/exercises/variables/variables2.rs
2022-05-28 02:04:58 +02:00

13 lines
296 B
Rust

// variables2.rs
// Make me compile! Execute the command `rustlings hint variables2` if you want a hint :)
fn main() {
let x = 1; // Orginally let x; Variables need defining from what I can tell.
if x == 10 {
println!("Ten!");
} else {
println!("Not ten!");
}
}