From f6cbf2bf76e77c8f64312f573f46cdc7bd434acd Mon Sep 17 00:00:00 2001 From: hybrid Date: Sat, 3 Oct 2026 04:40:21 +0300 Subject: add: 8 projects variables, shadowing, another_function, branches, loops, fahr2cel, fibonacci, christmax_song --- src/branches/Cargo.toml | 6 ++++++ src/branches/src/main.rs | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 src/branches/Cargo.toml create mode 100644 src/branches/src/main.rs (limited to 'src/branches') diff --git a/src/branches/Cargo.toml b/src/branches/Cargo.toml new file mode 100644 index 0000000..b12fd97 --- /dev/null +++ b/src/branches/Cargo.toml @@ -0,0 +1,6 @@ +[package] +name = "branches" +version = "0.1.0" +edition = "2024" + +[dependencies] diff --git a/src/branches/src/main.rs b/src/branches/src/main.rs new file mode 100644 index 0000000..7fdaaaf --- /dev/null +++ b/src/branches/src/main.rs @@ -0,0 +1,9 @@ +fn main() { + let number = 6; + + if number < 5 { + println!("condition was true"); + } else { + println!("condition was false"); + } +} -- cgit v1.3.1