rustlings/exercises/01_variables/variables2.rs

11 lines
190 B
Rust
Raw Normal View History

2015-09-17 01:19:24 +01:00
fn main() {
2024-05-21 00:47:57 +01:00
// TODO: Change the line below to fix the compiler error.
2015-09-17 01:19:24 +01:00
let x;
2024-05-21 00:47:57 +01:00
2015-09-17 01:19:24 +01:00
if x == 10 {
println!("x is ten!");
2015-09-17 01:19:24 +01:00
} else {
println!("x is not ten!");
2015-09-17 01:19:24 +01:00
}
}