fibonacci.cl: Move the input number out of the string
This commit is contained in:
parent
b8d70d3393
commit
5e4e70a72e
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user