rustlings/exercises/variables/variables2.rs
2020-03-07 09:28:40 +00:00

12 lines
234 B
Rust

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