mirror of
https://github.com/Fare-spec/cours.git
synced 2025-12-12 20:50:39 +00:00
13 lines
202 B
Rust
13 lines
202 B
Rust
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);
|
|
}
|