diff options
Diffstat (limited to 'rust/rustlings/exercises/01_variables/variables2.rs')
| -rw-r--r-- | rust/rustlings/exercises/01_variables/variables2.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rust/rustlings/exercises/01_variables/variables2.rs b/rust/rustlings/exercises/01_variables/variables2.rs new file mode 100644 index 0000000..b35a0bf --- /dev/null +++ b/rust/rustlings/exercises/01_variables/variables2.rs @@ -0,0 +1,9 @@ +fn main() { + let x = 10; + + if x == 10 { + println!("x is ten!"); + } else { + println!("x is not ten!"); + } +} |