21 lines
306 B
Plaintext
21 lines
306 B
Plaintext
// Hello, comment here!
|
|
|
|
import std::print;
|
|
|
|
fn main() {
|
|
let hello = 32 + {
|
|
2 + 3
|
|
};
|
|
let beep = hello + fibonacci();
|
|
return beep;
|
|
}
|
|
|
|
// Fibonacci
|
|
|
|
fn fibonacci(value: i32) -> i32 {
|
|
if value < 3 {
|
|
return 1;
|
|
}
|
|
return fibonacci(value - 1) + fibonacci(value - 2);
|
|
}
|