rustlings/exercises/variables/variables2.rs
Pierre Pasquet 519c6d5744 init
2023-12-01 13:56:37 -05:00

15 lines
248 B
Rust

// variables2.rs
//
// Execute `rustlings hint variables2` or use the `hint` watch subcommand for a
// hint.
fn main() {
let x: i64 = 10;
if x == 10 {
println!("x is ten!");
} else {
println!("x is not ten!");
}
}