fibonacci.cl: Move the input number out of the string

This commit is contained in:
John 2024-02-26 15:11:28 -06:00
parent b8d70d3393
commit 5e4e70a72e

View File

@ -1,7 +1,8 @@
// Calculate Fibonacci numbers // Calculate Fibonacci numbers
fn main() -> i128 { fn main() -> i128 {
print("fib(10): ", fib(10)); let num = 10;
print("fib(", num, "): ", fib(num));
} }
/// Implements the classic recursive definition of fib() /// Implements the classic recursive definition of fib()