rustlings/exercises/variables/variables2.rs
IloveKanade b1dbf15193 my rustlng answer 3.1 ~ 4.1.2
Signed-off-by: IloveKanade <xjlgxlgx@gmail.com>
2022-04-24 17:30:27 +08:00

12 lines
230 B
Rust

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