rustlings/exercises/variables/variables2.rs
Zachary Chua f37762c23a Finished first 5 as wel as quiz1
Finished variables, functions, if, move semantics, primitive types as
well as quiz1
2021-05-05 18:16:53 +08:00

12 lines
235 B
Rust

// variables2.rs
// Make me compile! Execute the command `rustlings hint variables2` if you want a hint :)
fn main() {
let x: i32 = 10;
if x == 10 {
println!("Ten!");
} else {
println!("Not ten!");
}
}