rustlings/exercises/01_variables/variables2.rs

11 lines
190 B
Rust
Raw Normal View History

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