Auto urgent commit.

This commit is contained in:
2024-12-18 09:50:27 +01:00
parent efc7387a03
commit d86df700a2
5 changed files with 100 additions and 0 deletions

7
fibonacci/fibobo/Cargo.lock generated Normal file
View File

@@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 4
[[package]]
name = "fibobo"
version = "0.1.0"

View File

@@ -0,0 +1,6 @@
[package]
name = "fibobo"
version = "0.1.0"
edition = "2021"
[dependencies]

View File

@@ -0,0 +1,12 @@
fn main() {
println!("Hello, world!");
let f = fibobo(30);
println!("{f}");
}
fn fibobo(n: u64) -> u64 {
if n <= 1 {
return n;
}
return fibobo(n - 1) + fibobo(n - 2);
}