mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-01-09 20:03:24 +03:00
13 lines
296 B
Rust
13 lines
296 B
Rust
// variables2.rs
|
|
// Make me compile! Execute the command `rustlings hint variables2` if you want a hint :)
|
|
|
|
|
|
fn main() {
|
|
let x = 1; // Orginally let x; Variables need defining from what I can tell.
|
|
if x == 10 {
|
|
println!("Ten!");
|
|
} else {
|
|
println!("Not ten!");
|
|
}
|
|
}
|