finished ch3
This commit is contained in:
parent
5c3e251568
commit
6d09a2a420
9 changed files with 70 additions and 0 deletions
7
ch3/branches/Cargo.lock
generated
Normal file
7
ch3/branches/Cargo.lock
generated
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 4
|
||||
|
||||
[[package]]
|
||||
name = "branches"
|
||||
version = "0.1.0"
|
||||
6
ch3/branches/Cargo.toml
Normal file
6
ch3/branches/Cargo.toml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[package]
|
||||
name = "branches"
|
||||
version = "0.1.0"
|
||||
edition = "2024"
|
||||
|
||||
[dependencies]
|
||||
9
ch3/branches/src/main.rs
Normal file
9
ch3/branches/src/main.rs
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
fn main() {
|
||||
let number = 3;
|
||||
|
||||
if number < 5 {
|
||||
println!("condition was true");
|
||||
} else {
|
||||
println!("condition was false");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue